+ } else if (part && !is_alternate) {
+ content_type = g_ascii_strdown (tny_mime_part_get_content_type (part), -1);
+ g_strstrip (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/")) {
+ 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/")) {
+ body_found = TRUE;
+ }
+ }
+
+