[geary] Read Reply-To: from GMime: Bug #744167



commit c711b75af12ce0d750fb6bda0b3a850134d0f8d7
Author: mar-v-in <github rvin mooo com>
Date:   Fri Feb 13 17:10:48 2015 -0800

    Read Reply-To: from GMime: Bug #744167

 src/engine/rfc822/rfc822-message.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/engine/rfc822/rfc822-message.vala b/src/engine/rfc822/rfc822-message.vala
index 454317f..1e1283d 100644
--- a/src/engine/rfc822/rfc822-message.vala
+++ b/src/engine/rfc822/rfc822-message.vala
@@ -294,7 +294,7 @@ public class Geary.RFC822.Message : BaseObject {
         email.set_message_header(new Geary.RFC822.Header(new Geary.Memory.StringBuffer(
             message.get_headers())));
         email.set_send_date(date);
-        email.set_originators(from, new Geary.RFC822.MailboxAddresses.single(sender), null);
+        email.set_originators(from, new Geary.RFC822.MailboxAddresses.single(sender), reply_to);
         email.set_receivers(to, cc, bcc);
         email.set_full_references(null, in_reply_to, references);
         email.set_message_subject(subject);
@@ -344,6 +344,9 @@ public class Geary.RFC822.Message : BaseObject {
         if (converted != null && converted.size > 0)
             bcc = new RFC822.MailboxAddresses(converted);
         
+        if (!String.is_empty(message.get_reply_to()))
+            reply_to = new RFC822.MailboxAddresses.from_rfc822_string(message.get_reply_to());
+        
         if (!String.is_empty(message.get_header(HEADER_IN_REPLY_TO)))
             in_reply_to = new 
RFC822.MessageIDList.from_rfc822_string(message.get_header(HEADER_IN_REPLY_TO));
         


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