aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-01-14 15:15:27 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-01-14 15:15:27 +0800
commitbb02dc25b40f4a695941ddd607959696c2b45604 (patch)
tree48b1293befcd073b8fa611726be020c2dea4b9e2 /camel
parent0085381870b87b3f06f52109ec5d44e3e17a3862 (diff)
downloadgsoc2013-evolution-bb02dc25b40f4a695941ddd607959696c2b45604.tar
gsoc2013-evolution-bb02dc25b40f4a695941ddd607959696c2b45604.tar.gz
gsoc2013-evolution-bb02dc25b40f4a695941ddd607959696c2b45604.tar.bz2
gsoc2013-evolution-bb02dc25b40f4a695941ddd607959696c2b45604.tar.lz
gsoc2013-evolution-bb02dc25b40f4a695941ddd607959696c2b45604.tar.xz
gsoc2013-evolution-bb02dc25b40f4a695941ddd607959696c2b45604.tar.zst
gsoc2013-evolution-bb02dc25b40f4a695941ddd607959696c2b45604.zip
If we have no content-type header, set it to text/plain explcitly, rather
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. svn path=/trunk/; revision=19438
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-mime-parser.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 7d1a4c82e5..df4ae24db4 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -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
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;