From a72c803f36f7617e4bbb478957f1ab3f018739d9 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Mon, 22 Jun 2009 16:34:02 +0200 Subject: [PATCH] Fixes NB#123895, contents of rfc822 parts without content type are not shown --- src/modest-tny-mime-part.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modest-tny-mime-part.c b/src/modest-tny-mime-part.c index 766a1c6..ff6c1cd 100644 --- a/src/modest-tny-mime-part.c +++ b/src/modest-tny-mime-part.c @@ -217,8 +217,9 @@ modest_tny_mime_part_get_headers_content_type (TnyMimePart *part) header_content_type = modest_tny_mime_part_get_header_value (part, "Content-Type"); + /* See RFC2045 sec 5.2 */ if (!header_content_type) - return NULL; + return g_strdup ("text/plain; charset=us-ascii"); header_content_type = g_strstrip (header_content_type); -- 1.7.9.5