[evolution] Bug #680537 - Reply to individual message in digest generates empty body
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #680537 - Reply to individual message in digest generates empty body
- Date: Wed, 12 Sep 2012 17:05:41 +0000 (UTC)
commit 409b4a5b793a3e2515c0183b2c93c7a6900a09f8
Author: Milan Crha <mcrha redhat com>
Date: Wed Sep 12 19:04:36 2012 +0200
Bug #680537 - Reply to individual message in digest generates empty body
em-format/e-mail-parser-message.c | 14 ++++++++++++++
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 a761f4b..5f7f8a9 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]