Better attachments detection for text/calendar
[modest] / src / modest-tny-mime-part.c
index 8f04082..3e9a473 100644 (file)
@@ -171,7 +171,8 @@ modest_tny_mime_part_is_msg (TnyMimePart *part)
        down_content_type = g_ascii_strdown (content_type, -1);
        if ((g_str_has_prefix (down_content_type, "message/rfc822") ||
             g_str_has_prefix (down_content_type, "multipart/") ||
-            g_str_has_prefix (down_content_type, "text/"))) {
+            g_str_has_prefix (down_content_type, "text/plain") ||
+            g_str_has_prefix (down_content_type, "text/html"))) {
                g_free (down_content_type);
                return TRUE;
        } else {