[geary/wip/282-composer-quoted-email: 2/3] Ensure Smtp.ClientSession is quoting RCPT addresses correctly



commit ecb91d15979f5cb7592e0c21885e07f6061e589c
Author: Michael Gratton <mike vee net>
Date:   Sat Mar 2 14:26:39 2019 +1100

    Ensure Smtp.ClientSession is quoting RCPT addresses correctly

 src/engine/smtp/smtp-client-session.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/engine/smtp/smtp-client-session.vala b/src/engine/smtp/smtp-client-session.vala
index e17a13f0..d8d2d182 100644
--- a/src/engine/smtp/smtp-client-session.vala
+++ b/src/engine/smtp/smtp-client-session.vala
@@ -217,7 +217,7 @@ public class Geary.Smtp.ClientSession {
 
         // TODO: Support mailbox groups
         foreach (RFC822.MailboxAddress mailbox in addrlist) {
-            RcptRequest rcpt_request = new RcptRequest.plain(mailbox.address);
+            RcptRequest rcpt_request = new RcptRequest.plain(mailbox.to_rfc822_address());
             Response response = yield cx.transaction_async(rcpt_request, cancellable);
 
             if (!response.code.is_success_completed()) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]