diff options
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r-- | camel/camel-mime-part.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index c5169741e5..d19cace9c0 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -36,6 +36,7 @@ #include "camel-stream-mem.h" #include "camel-stream-filter.h" #include "camel-mime-filter-basic.h" +#include "camel-mime-filter-crlf.h" #include "camel-exception.h" #define d(x) @@ -528,6 +529,11 @@ write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream) } if (filter) { filter_stream = camel_stream_filter_new_with_stream(stream); + if (!strcasecmp(mp->content_type->type, "text")) { + CamelMimeFilter *crlf = camel_mime_filter_crlf_new(CAMEL_MIME_FILTER_CRLF_ENCODE); + camel_stream_filter_add(filter_stream, crlf); + gtk_object_unref((GtkObject *)crlf); + } camel_stream_filter_add(filter_stream, filter); gtk_object_unref((GtkObject *)filter); stream = (CamelStream *)filter_stream; |