diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-05-19 01:17:33 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-05-20 01:07:21 +0800 |
commit | 0ee556d346fe8976b63d9eb1c929b41a101037e1 (patch) | |
tree | 86f9c4ebce2cd4537e19f8a0db54ed3d70dd973b /modules | |
parent | f19058ea7a002e8ebf8351c55a86d3bb17a46cbc (diff) | |
download | gsoc2013-evolution-0ee556d346fe8976b63d9eb1c929b41a101037e1.tar gsoc2013-evolution-0ee556d346fe8976b63d9eb1c929b41a101037e1.tar.gz gsoc2013-evolution-0ee556d346fe8976b63d9eb1c929b41a101037e1.tar.bz2 gsoc2013-evolution-0ee556d346fe8976b63d9eb1c929b41a101037e1.tar.lz gsoc2013-evolution-0ee556d346fe8976b63d9eb1c929b41a101037e1.tar.xz gsoc2013-evolution-0ee556d346fe8976b63d9eb1c929b41a101037e1.tar.zst gsoc2013-evolution-0ee556d346fe8976b63d9eb1c929b41a101037e1.zip |
Add e_mail_part_get_mime_type().
Diffstat (limited to 'modules')
-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; } } |