aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-09-07 21:38:32 +0800
committerMilan Crha <mcrha@redhat.com>2012-09-07 21:38:32 +0800
commitc9d0ac751bf0c99f7688b6a3db1dda464ab0f742 (patch)
treee58158185263b6ccc3901cf9147cbe15e9bbac26
parent3ee6ef49e60782c684e76fc447a5b52df4c72647 (diff)
downloadgsoc2013-evolution-c9d0ac751bf0c99f7688b6a3db1dda464ab0f742.tar
gsoc2013-evolution-c9d0ac751bf0c99f7688b6a3db1dda464ab0f742.tar.gz
gsoc2013-evolution-c9d0ac751bf0c99f7688b6a3db1dda464ab0f742.tar.bz2
gsoc2013-evolution-c9d0ac751bf0c99f7688b6a3db1dda464ab0f742.tar.lz
gsoc2013-evolution-c9d0ac751bf0c99f7688b6a3db1dda464ab0f742.tar.xz
gsoc2013-evolution-c9d0ac751bf0c99f7688b6a3db1dda464ab0f742.tar.zst
gsoc2013-evolution-c9d0ac751bf0c99f7688b6a3db1dda464ab0f742.zip
Bug #681279 - Reply on selection doesn't work
This time because Prefer-plain could hide text/html part, which resulted in no text shown in the reply.
-rw-r--r--mail/em-utils.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 4dc130c60b..c5a13823a8 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1305,6 +1305,19 @@ em_utils_message_to_html (CamelSession *session,
if (!part)
continue;
+ /* Prefer-plain can hide text parts, thus show them */
+ if (part->is_hidden && part->mime_type) {
+ CamelContentType *ct;
+
+ ct = camel_content_type_decode (part->mime_type);
+ if (ct) {
+ if (camel_content_type_is (ct, "text", "*"))
+ part->is_hidden = FALSE;
+
+ camel_content_type_unref (ct);
+ }
+ }
+
if (*validity_found && part->validity_type)
*validity_found |= part->validity_type;
}