aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-09-13 01:04:36 +0800
committerMilan Crha <mcrha@redhat.com>2012-09-13 01:04:36 +0800
commit409b4a5b793a3e2515c0183b2c93c7a6900a09f8 (patch)
treeb0562e6dad4e9eddcb294b9bba1a25ec8aa71b48
parent146f9f653f78d6a5cbb5e0622707a8bdca6ee996 (diff)
downloadgsoc2013-evolution-409b4a5b793a3e2515c0183b2c93c7a6900a09f8.tar.gz
gsoc2013-evolution-409b4a5b793a3e2515c0183b2c93c7a6900a09f8.tar.zst
gsoc2013-evolution-409b4a5b793a3e2515c0183b2c93c7a6900a09f8.zip
Bug #680537 - Reply to individual message in digest generates empty body
-rw-r--r--em-format/e-mail-parser-message.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/em-format/e-mail-parser-message.c b/em-format/e-mail-parser-message.c
index a761f4bd53..5f7f8a94d0 100644
--- a/em-format/e-mail-parser-message.c
+++ b/em-format/e-mail-parser-message.c
@@ -88,6 +88,20 @@ empe_message_parse (EMailParserExtension *extension,
ct = camel_mime_part_get_content_type (part);
mime_type = camel_content_type_simple (ct);
+ if (mime_type && g_ascii_strcasecmp (mime_type, "message/rfc822") == 0) {
+ /* get mime type of the content of the message,
+ instead of using a generic message/rfc822 */
+ CamelDataWrapper *content;
+
+ content = camel_medium_get_content (CAMEL_MEDIUM (part));
+ if (content) {
+ ct = camel_data_wrapper_get_mime_type_field (content);
+
+ g_free (mime_type);
+ mime_type = camel_content_type_simple (ct);
+ }
+ }
+
/* Actual message body */
parts = g_slist_concat (parts, e_mail_parser_parse_part_as (
parser, part, part_id, mime_type,