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 {
direct_attach = (!g_str_has_prefix (msg_content_type, "message/rfc822") &&
!g_str_has_prefix (msg_content_type, "multipart") &&
- !g_str_has_prefix (msg_content_type, "text/"));
+ !g_str_has_prefix (msg_content_type, "text/plain") &&
+ !g_str_has_prefix (msg_content_type, "text/html"));
g_free (msg_content_type);
if (g_str_has_prefix (content_type, "multipart/digest")) {
add_digest_attachments (attachments_view, part);
- } else if (body_found && g_str_has_prefix (content_type, "text/")) {
+ } else if (body_found &&
+ (g_str_has_prefix (content_type, "text/plain") ||
+ g_str_has_prefix (content_type, "text/html"))) {
modest_attachments_view_add_attachment (attachments_view, part, TRUE, 0);
} else if (g_str_has_prefix (content_type, "multipart/") ||
- g_str_has_prefix (content_type, "text/")) {
+ g_str_has_prefix (content_type, "text/plain") ||
+ g_str_has_prefix (content_type, "text/html")) {
body_found = TRUE;
}
}