Merge branch 'mjog/1126-dot-stuffing' into 'mainline'
Fix email being sent truncated after a line starting with a dot. Closes #1126 See merge request GNOME/geary!647
This commit is contained in:
commit
e99115e99f
2 changed files with 7 additions and 7 deletions
|
|
@ -110,14 +110,14 @@ internal class Geary.Smtp.ClientConnection : BaseObject, Logging.Source {
|
|||
}
|
||||
|
||||
/**
|
||||
* Sends a block of data (mail message) by first issuing the DATA command and transmitting
|
||||
* the block if the appropriate response is sent.
|
||||
* Sends a block of data
|
||||
*
|
||||
* Dot-stuffing is performed on the data if !already_dotstuffed. See
|
||||
* [[http://tools.ietf.org/html/rfc2821#section-4.5.2]]
|
||||
* This first issues a DATA command and transmits the block if the
|
||||
* appropriate response is sent.
|
||||
*
|
||||
* Returns the final Response of the transaction. If the ResponseCode is not a successful
|
||||
* completion, the message should not be considered sent.
|
||||
* Returns the final Response of the transaction. If the
|
||||
* ResponseCode is not a successful completion, the message should
|
||||
* not be considered sent.
|
||||
*/
|
||||
public async Response send_data_async(Memory.Buffer data,
|
||||
GLib.Cancellable? cancellable = null)
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ public class Geary.Smtp.ClientSession : BaseObject, Logging.Source {
|
|||
|
||||
// DATA
|
||||
response = yield cx.send_data_async(
|
||||
email.get_rfc822_buffer(), cancellable
|
||||
email.get_rfc822_buffer(SMTP_FORMAT), cancellable
|
||||
);
|
||||
if (!response.code.is_success_completed())
|
||||
response.throw_error("Unable to send message");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue