diff options
Diffstat (limited to 'modules/prefer-plain')
-rw-r--r-- | modules/prefer-plain/e-mail-parser-prefer-plain.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/prefer-plain/e-mail-parser-prefer-plain.c b/modules/prefer-plain/e-mail-parser-prefer-plain.c index c09c70d7f8..df23c79e19 100644 --- a/modules/prefer-plain/e-mail-parser-prefer-plain.c +++ b/modules/prefer-plain/e-mail-parser-prefer-plain.c @@ -318,8 +318,11 @@ empe_prefer_plain_parse (EMailParserExtension *extension, for (qiter = g_queue_peek_head_link (&work_queue); qiter; qiter = g_list_next (qiter)) { EMailPart *mpart = qiter->data; + const gchar *mime_type; - if (mpart && mpart->is_hidden && g_strcmp0 (mpart->mime_type, "text/html") == 0) { + mime_type = e_mail_part_get_mime_type (mpart); + + if (mpart && mpart->is_hidden && g_strcmp0 (mime_type, "text/html") == 0) { mpart->is_attachment = TRUE; } } |