[evolution-data-server] Bug #590476 (bnc) - Evolution corrupts PDF files.



commit 5be866d0361a1286318ffe2d5a7cf22646086b7d
Author: Vibha Yadav <yvibha novell com>
Date:   Wed Dec 1 17:12:35 2010 +0530

    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.

 camel/camel-data-wrapper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-data-wrapper.c b/camel/camel-data-wrapper.c
index 327fa16..bdb485a 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]