aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-01-24 20:07:33 +0800
committerMilan Crha <mcrha@redhat.com>2013-01-24 20:07:33 +0800
commitf3dfdae8458d08331551ce441be045f4dfaa8b77 (patch)
treeed949d98b22de64098d000656401648a07f80aee /mail
parent9095910fa3ffde4fbec9472158246613c85007fe (diff)
downloadgsoc2013-evolution-f3dfdae8458d08331551ce441be045f4dfaa8b77.tar
gsoc2013-evolution-f3dfdae8458d08331551ce441be045f4dfaa8b77.tar.gz
gsoc2013-evolution-f3dfdae8458d08331551ce441be045f4dfaa8b77.tar.bz2
gsoc2013-evolution-f3dfdae8458d08331551ce441be045f4dfaa8b77.tar.lz
gsoc2013-evolution-f3dfdae8458d08331551ce441be045f4dfaa8b77.tar.xz
gsoc2013-evolution-f3dfdae8458d08331551ce441be045f4dfaa8b77.tar.zst
gsoc2013-evolution-f3dfdae8458d08331551ce441be045f4dfaa8b77.zip
Bug #692009 - text/css always formatted as attachment
Might be the final change for this bug, the two previous commits were not using the right approach, causing regression in rendering of text/* parts which were not named in the list of excluded content types for a 'raw' formatting.
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-display.c2
-rw-r--r--mail/e-mail-request.c10
2 files changed, 2 insertions, 10 deletions
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c
index f2a3035d0a..a286787be0 100644
--- a/mail/e-mail-display.c
+++ b/mail/e-mail-display.c
@@ -354,7 +354,7 @@ mail_display_resource_requested (WebKitWebView *web_view,
new_uri = e_mail_part_build_uri (
folder, message_uid,
"part_id", G_TYPE_STRING, uri,
- "mode", G_TYPE_INT, E_MAIL_FORMATTER_MODE_RAW, NULL);
+ "mode", G_TYPE_INT, E_MAIL_FORMATTER_MODE_CID, NULL);
webkit_network_request_set_uri (request, new_uri);
diff --git a/mail/e-mail-request.c b/mail/e-mail-request.c
index 2c2fb02ce6..a28cdf94da 100644
--- a/mail/e-mail-request.c
+++ b/mail/e-mail-request.c
@@ -136,15 +136,7 @@ handle_mail_request (GSimpleAsyncResult *res,
}
if (part != NULL) {
- CamelContentType *content_type;
-
- content_type = camel_mime_part_get_content_type (part->part);
-
- if (context.mode == E_MAIL_FORMATTER_MODE_RAW && content_type &&
- camel_content_type_is (content_type, "text", "*") &&
- !camel_content_type_is (content_type, "text", "plain") &&
- !camel_content_type_is (content_type, "text", "html") &&
- !camel_content_type_is (content_type, "text", "calendar")) {
+ if (context.mode == E_MAIL_FORMATTER_MODE_CID) {
CamelDataWrapper *dw;
CamelStream *raw_content;
GByteArray *ba;