aboutsummaryrefslogtreecommitdiffstats
path: root/em-format
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-10-16 00:10:25 +0800
committerMilan Crha <mcrha@redhat.com>2009-10-16 00:10:25 +0800
commit25dd724999d551f2f59b06909cff7c660a3c3dab (patch)
treed69c09f08c4bebd608a102b932d52997ef148405 /em-format
parent47dcdfdd7074ad6b426b7f665cb59e5b6546804b (diff)
downloadgsoc2013-evolution-25dd724999d551f2f59b06909cff7c660a3c3dab.tar
gsoc2013-evolution-25dd724999d551f2f59b06909cff7c660a3c3dab.tar.gz
gsoc2013-evolution-25dd724999d551f2f59b06909cff7c660a3c3dab.tar.bz2
gsoc2013-evolution-25dd724999d551f2f59b06909cff7c660a3c3dab.tar.lz
gsoc2013-evolution-25dd724999d551f2f59b06909cff7c660a3c3dab.tar.xz
gsoc2013-evolution-25dd724999d551f2f59b06909cff7c660a3c3dab.tar.zst
gsoc2013-evolution-25dd724999d551f2f59b06909cff7c660a3c3dab.zip
Bug #516000 - Wrong formatted quoted text
Diffstat (limited to 'em-format')
-rw-r--r--em-format/em-format-quote.c6
1 files changed, 6 insertions, 0 deletions
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 <camel/camel-iconv.h>
#include <camel/camel-stream-filter.h>
+#include <camel/camel-mime-filter-linewrap.h>
#include <camel/camel-mime-filter-tohtml.h>
#include <camel/camel-mime-filter-enriched.h>
#include <camel/camel-string-utils.h>
@@ -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);