* Fixes NB#85493, do not show an HTML attachment as message body
authorSergio Villar Senin <svillar@igalia.com>
Thu, 15 May 2008 10:05:14 +0000 (10:05 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Thu, 15 May 2008 10:05:14 +0000 (10:05 +0000)
pmo-trunk-r4532

src/modest-tny-msg.c

index 8c8089a..9aeb40d 100644 (file)
@@ -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;