- if ((g_str_has_prefix (content_type, "message/rfc822") ||
- g_str_has_prefix (content_type, "multipart/") ||
- g_str_has_prefix (content_type, "text/"))) {
+ 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_free (down_content_type);