From bb02dc25b40f4a695941ddd607959696c2b45604 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 14 Jan 2003 07:15:27 +0000 Subject: If we have no content-type header, set it to text/plain explcitly, rather 2003-01-14 Not Zed * camel-mime-parser.c (folder_scan_step): If we have no content-type header, set it to text/plain explcitly, rather than NULL, because some code doesn't handle NULL. svn path=/trunk/; revision=19438 --- camel/camel-mime-parser.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'camel/camel-mime-parser.c') diff --git a/camel/camel-mime-parser.c b/camel/camel-mime-parser.c index 401d97b836..a9f7704cca 100644 --- a/camel/camel-mime-parser.c +++ b/camel/camel-mime-parser.c @@ -1693,6 +1693,8 @@ tail_recurse: d(printf("parent was multipart/digest, autoupgrading to message/rfc822?\n")); /* maybe we should do this too? header_raw_append_parse(&h->headers, "Content-Type: message/rfc822", -1);*/ + } else { + ct = header_content_type_decode("text/plain"); } } h->content_type = ct; -- cgit v1.2.3