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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user