From: Sergio Villar Senin Date: Thu, 15 May 2008 10:05:14 +0000 (+0000) Subject: * Fixes NB#85493, do not show an HTML attachment as message body X-Git-Tag: git_migration_finished~1372 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=361bcb3ee50c6fb8cb1f9c039c9c10bedca41b84 * Fixes NB#85493, do not show an HTML attachment as message body pmo-trunk-r4532 --- diff --git a/src/modest-tny-msg.c b/src/modest-tny-msg.c index 8c8089a..9aeb40d 100644 --- a/src/modest-tny-msg.c +++ b/src/modest-tny-msg.c @@ -506,7 +506,9 @@ modest_tny_msg_find_body_part_from_mime_part (TnyMimePart *msg, gboolean want_ht g_free (content_disp); } - if (g_str_has_prefix (content_type, desired_mime_type) && !has_content_disp_name) { + if (g_str_has_prefix (content_type, desired_mime_type) && + !has_content_disp_name && + !modest_tny_mime_part_is_attachment_for_modest (part)) { /* we found the desired mime-type! */ g_free (content_type); break;