mail-importer: Ensure Message-ID header on imported message

The Message-ID header is required when rendering the message preview,
thus, in case it's not available in the message, add it.
This commit is contained in:
Milan Crha
2021-10-12 15:08:11 +02:00
parent 717f179bd9
commit 9090b9839e
+3
View File
@@ -187,6 +187,9 @@ mbox_fill_preview_cb (GObject *preview,
mail_session = e_mail_session_new (registry);
}
if (!camel_mime_message_get_message_id (msg))
camel_mime_message_set_message_id (msg, NULL);
parser = e_mail_parser_new (CAMEL_SESSION (mail_session));
e_mail_parser_parse (
parser, NULL, camel_mime_message_get_message_id (msg), msg,