If we have no content-type header, set it to text/plain explcitly, rather
authorNot Zed <NotZed@Ximian.com>
Tue, 14 Jan 2003 07:15:27 +0000 (07:15 +0000)
committerMichael Zucci <zucchi@src.gnome.org>
Tue, 14 Jan 2003 07:15:27 +0000 (07:15 +0000)
2003-01-14  Not Zed  <NotZed@Ximian.com>

        * 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
camel/camel-mime-parser.c

index 7d1a4c8..df4ae24 100644 (file)
@@ -1,3 +1,9 @@
+2003-01-14  Not Zed  <NotZed@Ximian.com>
+
+       * 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  <fejj@ximian.com>
 
        * camel-sasl-gssapi.[c,h]: New source files implementing the
index 401d97b..a9f7704 100644 (file)
@@ -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;