diff options
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r-- | camel/camel-mime-part.c | 4 |
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); |