aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-06-02 06:08:07 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-06-02 06:08:07 +0800
commit7e6624257538df294f3dbd5f717ceba0d6ab43ab (patch)
treeb3ae7bd2466efd345ccd650e066b4541870d9bcd /camel/camel-mime-part.c
parentc7ea21299d51a17280e2400bda29e80bcf01cb73 (diff)
downloadgsoc2013-evolution-7e6624257538df294f3dbd5f717ceba0d6ab43ab.tar
gsoc2013-evolution-7e6624257538df294f3dbd5f717ceba0d6ab43ab.tar.gz
gsoc2013-evolution-7e6624257538df294f3dbd5f717ceba0d6ab43ab.tar.bz2
gsoc2013-evolution-7e6624257538df294f3dbd5f717ceba0d6ab43ab.tar.lz
gsoc2013-evolution-7e6624257538df294f3dbd5f717ceba0d6ab43ab.tar.xz
gsoc2013-evolution-7e6624257538df294f3dbd5f717ceba0d6ab43ab.tar.zst
gsoc2013-evolution-7e6624257538df294f3dbd5f717ceba0d6ab43ab.zip
Fixes Bug 192.
2000-06-01 Not Zed <NotZed@HelixCode.com> * camel-mime-part.c (construct_from_parser): For a message part, set the default content-type to message/rfc822. Maybe needs to be done for multiparts too? 2000-05-31 Not Zed <NotZed@HelixCode.com> * camel-mime-message.c (construct_from_parser): Typo in assersion. * camel-mime-parser.c (folder_scan_step): Use a default type of message/rfc822 for multipart/digest. Bug Z192. (folder_scan_drop_step): Remove warning. svn path=/trunk/; revision=3340
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r--camel/camel-mime-part.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index d727c98811..49cf6aa0a1 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -557,8 +557,10 @@ construct_from_parser(CamelMimePart *dw, CamelMimeParser *mp)
d(printf("mime_part::construct_from_parser()\n"));
switch (camel_mime_parser_step(mp, &buf, &len)) {
- case HSCAN_HEADER:
case HSCAN_MESSAGE:
+ /* set the default type of a message always */
+ gmime_content_field_construct_from_string (dw->content_type, "message/rfc822");
+ case HSCAN_HEADER:
case HSCAN_MULTIPART:
/* we have the headers, build them into 'us' */
headers = camel_mime_parser_headers_raw(mp);