diff options
author | Milan Crha <mcrha@redhat.com> | 2021-06-24 16:17:58 +0200 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2021-06-24 16:20:02 +0200 |
commit | 59a14d5fe6646122ec11027a180047fa98ce9d28 (patch) | |
tree | 23d0bd24d30d0638fe8d2efb9ff46bff5b6a1ffe | |
parent | 5aea2f420ca1606d0716c36975ff7cc914b6e5dc (diff) | |
download | evolution-59a14d5fe6646122ec11027a180047fa98ce9d28.tar.gz |
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
-rw-r--r-- | src/mail/e-mail-notes.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |