GNOME Bugzilla – Bug 741553
curlsmtpsink: final boundary only added to last mail
Last modified: 2014-12-19 13:18:04 UTC
In SMTP uploads spanning over multiple emails each email should be ended by a final boundary. This does not work properly. Instead, the final boundary is only added to the last email.
Created attachment 292755 [details] [review] Proposed patch that fixes the issue After each buffer is completed check if we've reached max buffers per email. If so then add the final boundary. When EOS is received only send final boundary if it's not already sent (i.e. as a result of max buffers per email reached). Also simplified, and corrected, how we keep track of the number of attachments sent/left.
Pushed to master, thanks: commit f00d21aec5ed524052a5f5c52e764a57e74fda05 Author: Branko Subasic <branko@axis.com> Date: Mon Dec 15 16:27:16 2014 +0100 curlsmtpsink: add final boundary to all multipart emails Corrected the final boundary mechanism so that a final boundary is added to each mail with multipart content that is sent, not just to the last one. https://bugzilla.gnome.org/show_bug.cgi?id=741553