summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVibha Yadav <yvibha@novell.com>2010-12-01 17:12:35 +0530
committerVibha Yadav <yvibha@novell.com>2010-12-01 17:12:35 +0530
commit5be866d0361a1286318ffe2d5a7cf22646086b7d (patch)
treeaa53e5fb779b722d1ad92a6004d1de34e5776e71
parent793e9cda8a969f38939ef0ba69bef8bea4df28ad (diff)
downloadevolution-data-server-5be866d0361a1286318ffe2d5a7cf22646086b7d.tar.gz
Bug #590476 (bnc) - Evolution corrupts PDF files.
Added the code to skip the "text" treatment, if the content type is "text/pdf" because of which pdf gets corrupted.
-rw-r--r--camel/camel-data-wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-data-wrapper.c b/camel/camel-data-wrapper.c
index 327fa161b..bdb485a95 100644
--- a/camel/camel-data-wrapper.c
+++ b/camel/camel-data-wrapper.c
@@ -203,7 +203,7 @@ data_wrapper_decode_to_stream_sync (CamelDataWrapper *data_wrapper,
break;
}
- if (camel_content_type_is (data_wrapper->mime_type, "text", "*")) {
+ if (!(camel_content_type_is (data_wrapper->mime_type, "text", "pdf")) && camel_content_type_is (data_wrapper->mime_type, "text", "*")) {
filter = camel_mime_filter_crlf_new (CAMEL_MIME_FILTER_CRLF_DECODE,
CAMEL_MIME_FILTER_CRLF_MODE_CRLF_ONLY);
camel_stream_filter_add (CAMEL_STREAM_FILTER (fstream), filter);