From ca4c211ba158d7866967e4b5b158c122b7a8fc31 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 14 Jan 2003 07:15:27 +0000 Subject: [PATCH] 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. --- camel/ChangeLog | 6 ++++++ camel/camel-mime-parser.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/camel/ChangeLog b/camel/ChangeLog index 7d1a4c8..df4ae24 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +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. + 2003-01-14 Jeffrey Stedfast * camel-sasl-gssapi.[c,h]: New source files implementing the diff --git a/camel/camel-mime-parser.c b/camel/camel-mime-parser.c index 401d97b..a9f7704 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; -- 2.7.4