g_free (header_content_type_lower);
g_free (header_content_type);
return NULL;
- }
+ }
g_free (header_content_type_lower);
g_free (header_content_type);
content_type = g_strstrip (content_type);
content_type_lower = g_ascii_strdown (content_type, -1);
g_free (content_type);
- is_text_part = g_str_has_prefix (content_type_lower, "text/");
+ is_text_part =
+ g_str_has_prefix (content_type_lower, "text/") ||
+ g_str_has_prefix (content_type_lower, "message/rfc822");
g_free (content_type_lower);
/* if this part cannot be a supported body return NULL */
if (!is_text_part) {
/* it's a message --> ignore */
if (part && TNY_IS_MSG (part)) {
g_object_unref (part);
+ part = NULL;
tny_iterator_next (iter);
continue;
}