Added the code to skip the "text" treatment, if the content type is
"text/pdf" because of which pdf gets corrupted.
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);