aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-quote.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2004-05-26 00:16:25 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-05-26 00:16:25 +0800
commitb28d4738f24ecf8e001fc920b498e4ed1e7c90d6 (patch)
treecae4161e24b6897bf26ee327211395d8aac8fef8 /mail/em-format-quote.c
parent13492cb0f8cc36abfbbd2ef95a59a5746be84365 (diff)
downloadgsoc2013-evolution-b28d4738f24ecf8e001fc920b498e4ed1e7c90d6.tar
gsoc2013-evolution-b28d4738f24ecf8e001fc920b498e4ed1e7c90d6.tar.gz
gsoc2013-evolution-b28d4738f24ecf8e001fc920b498e4ed1e7c90d6.tar.bz2
gsoc2013-evolution-b28d4738f24ecf8e001fc920b498e4ed1e7c90d6.tar.lz
gsoc2013-evolution-b28d4738f24ecf8e001fc920b498e4ed1e7c90d6.tar.xz
gsoc2013-evolution-b28d4738f24ecf8e001fc920b498e4ed1e7c90d6.tar.zst
gsoc2013-evolution-b28d4738f24ecf8e001fc920b498e4ed1e7c90d6.zip
a few fixes.
2004-05-25 Jeffrey Stedfast <fejj@novell.com> * mail-errors.xml: a few fixes. * em-format-quote.c (emfq_text_plain): Only strip the signature if we are in some wy modifying the content (we don't want to remove the signature if we are editing the message as a new message). Fixes bug #58826. svn path=/trunk/; revision=26079
Diffstat (limited to 'mail/em-format-quote.c')
-rw-r--r--mail/em-format-quote.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/mail/em-format-quote.c b/mail/em-format-quote.c
index f0f45787ae..e25b182a31 100644
--- a/mail/em-format-quote.c
+++ b/mail/em-format-quote.c
@@ -427,7 +427,7 @@ emfq_text_plain(EMFormatQuote *emfq, CamelStream *stream, CamelMimePart *part, E
CamelContentType *type;
const char *format;
guint32 rgb = 0x737373, flags;
-
+
flags = emfq->text_html_flags;
/* Check for RFC 2646 flowed text. */
@@ -437,13 +437,17 @@ emfq_text_plain(EMFormatQuote *emfq, CamelStream *stream, CamelMimePart *part, E
&& !g_ascii_strcasecmp(format, "flowed"))
flags |= CAMEL_MIME_FILTER_TOHTML_FORMAT_FLOWED;
- sig_strip = em_stripsig_filter_new();
- html_filter = camel_mime_filter_tohtml_new(flags, rgb);
filtered_stream = camel_stream_filter_new_with_stream(stream);
- camel_stream_filter_add(filtered_stream, sig_strip);
+
+ if (emfq->flags != 0) {
+ sig_strip = em_stripsig_filter_new ();
+ camel_stream_filter_add (filtered_stream, sig_strip);
+ camel_object_unref (sig_strip);
+ }
+
+ html_filter = camel_mime_filter_tohtml_new(flags, rgb);
camel_stream_filter_add(filtered_stream, html_filter);
camel_object_unref(html_filter);
- camel_object_unref(sig_strip);
em_format_format_text((EMFormat *)emfq, (CamelStream *)filtered_stream, camel_medium_get_content_object((CamelMedium *)part));
camel_stream_flush((CamelStream *)filtered_stream);