[evolution] I#1547 - EMailNotes: Unset Content-Transfer-Encoding on message on save



commit 28fae1ec30dd6dace52dda68536c7d78ffe61304
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jun 24 16:17:58 2021 +0200

    I#1547 - EMailNotes: Unset Content-Transfer-Encoding on message on save
    
    Leftover header can break encoding of the added multipart/mixed part,
    by re-encoding everything in it, including the subparts boundaries.
    
    Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1547

 src/mail/e-mail-notes.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/mail/e-mail-notes.c b/src/mail/e-mail-notes.c
index fa192cd6e6..a4fe577690 100644
--- a/src/mail/e-mail-notes.c
+++ b/src/mail/e-mail-notes.c
@@ -708,6 +708,8 @@ e_mail_notes_replace_note (CamelMimeMessage *message,
 
        g_object_ref (orig_content);
 
+       camel_medium_remove_header (CAMEL_MEDIUM (message), "Content-Transfer-Encoding");
+
        if (note) {
                multipart = camel_multipart_new ();
                camel_data_wrapper_set_mime_type (CAMEL_DATA_WRAPPER (multipart), "multipart/mixed");


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