From 25dd724999d551f2f59b06909cff7c660a3c3dab Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 15 Oct 2009 18:10:25 +0200 Subject: Bug #516000 - Wrong formatted quoted text --- em-format/em-format-quote.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/em-format/em-format-quote.c b/em-format/em-format-quote.c index 88b11c3ac2..4bbe977918 100644 --- a/em-format/em-format-quote.c +++ b/em-format/em-format-quote.c @@ -29,6 +29,7 @@ #include #include +#include #include #include #include @@ -487,6 +488,7 @@ emfq_text_plain(EMFormatQuote *emfq, CamelStream *stream, CamelMimePart *part, E CamelStreamFilter *filtered_stream; CamelMimeFilter *html_filter; CamelMimeFilter *sig_strip; + CamelMimeFilter *wrap_filter; CamelContentType *type; const gchar *format; guint32 rgb = 0x737373, flags; @@ -511,6 +513,10 @@ emfq_text_plain(EMFormatQuote *emfq, CamelStream *stream, CamelMimePart *part, E camel_object_unref (sig_strip); } + wrap_filter = camel_mime_filter_linewrap_new (70, 70, 0, CAMEL_MIME_FILTER_LINEWRAP_WORD); + camel_stream_filter_add (filtered_stream, wrap_filter); + camel_object_unref (wrap_filter); + html_filter = camel_mime_filter_tohtml_new(flags, rgb); camel_stream_filter_add(filtered_stream, html_filter); camel_object_unref(html_filter); -- cgit v1.2.3