[evolution/gnome-3-6] Bug #692775 - Double-quoting message with HTML and text
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-6] Bug #692775 - Double-quoting message with HTML and text
- Date: Tue, 29 Jan 2013 13:50:23 +0000 (UTC)
commit 61f3f5669ac6418c33dd4bbfaef61ee29bd9fecd
Author: Milan Crha <mcrha redhat com>
Date: Tue Jan 29 14:50:00 2013 +0100
Bug #692775 - Double-quoting message with HTML and text
modules/prefer-plain/e-mail-parser-prefer-plain.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/modules/prefer-plain/e-mail-parser-prefer-plain.c b/modules/prefer-plain/e-mail-parser-prefer-plain.c
index 66ff321..02cfd99 100644
--- a/modules/prefer-plain/e-mail-parser-prefer-plain.c
+++ b/modules/prefer-plain/e-mail-parser-prefer-plain.c
@@ -322,6 +322,20 @@ empe_prefer_plain_parse (EMailParserExtension *extension,
}
if (plain_text_parts) {
+ if (parts && nparts > 1) {
+ /* a text/html part is hidden, but not marked as attachment,
+ thus do that now, when there exists a text/plain part */
+ GSList *piter;
+
+ for (piter = parts; piter; piter = g_slist_next (piter)) {
+ EMailPart *mpart = piter->data;
+
+ if (mpart && mpart->is_hidden && g_strcmp0 (mpart->mime_type, "text/html") == 0) {
+ mpart->is_attachment = TRUE;
+ }
+ }
+ }
+
/* plain_text parts should be always first */
parts = g_slist_concat (plain_text_parts, parts);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]