curlsmtpsink: Email with multipart content-type should end with a final boundary

Add final boundary for each of the sending out emails from smtpsink.

https://bugzilla.gnome.org/show_bug.cgi?id=736134
This commit is contained in:
Lihua Liu 2014-09-24 12:42:23 +02:00 committed by Sebastian Dröge
parent f8f2cca0e4
commit 22e09f19ed

View file

@ -918,6 +918,10 @@ gst_curl_smtp_sink_transfer_data_buffer (GstCurlBaseSink * bcsink,
}
if (sink->base64_chunk != NULL) {
if (sink->nbr_attachments_left == sink->nbr_attachments &&
bcsink->transfer_buf->len == 0) {
add_final_boundary_unlocked (sink);
}
bytes_to_send =
transfer_chunk (curl_ptr, bcsink->transfer_buf, sink->base64_chunk,
block_size, last_chunk);