[evolution] I#1312 - templates: Reply-To field is not copied to the new message



commit 42343120dbdefcaac84c514f164c7dc513614590
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jan 7 14:06:00 2021 +0100

    I#1312 - templates: Reply-To field is not copied to the new message
    
    Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1312

 src/mail/e-mail-templates.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/mail/e-mail-templates.c b/src/mail/e-mail-templates.c
index 04fbde6331..eebd004dbb 100644
--- a/src/mail/e-mail-templates.c
+++ b/src/mail/e-mail-templates.c
@@ -612,13 +612,16 @@ e_mail_templates_apply_sync (CamelMimeMessage *source_message,
                camel_mime_message_get_reply_to (source_message) ? camel_mime_message_get_reply_to 
(source_message) :
                camel_mime_message_get_from (source_message));
 
-       /* Copy the CC and BCC from the template.*/
+       /* Copy the recipients from the template. */
        camel_mime_message_set_recipients (result_message, CAMEL_RECIPIENT_TYPE_CC,
                camel_mime_message_get_recipients (template_message, CAMEL_RECIPIENT_TYPE_CC));
 
        camel_mime_message_set_recipients (result_message, CAMEL_RECIPIENT_TYPE_BCC,
                camel_mime_message_get_recipients (template_message, CAMEL_RECIPIENT_TYPE_BCC));
 
+       if (camel_mime_message_get_reply_to (template_message))
+               camel_mime_message_set_reply_to (result_message, camel_mime_message_get_reply_to 
(template_message));
+
        g_clear_object (&template_message);
        g_clear_object (&new_multipart);
 


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