aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-09 10:06:03 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-09 10:06:03 +0800
commitcee49f028644048a129fefd513a396a145bb0a90 (patch)
treecc274529619f7a81a1a3e857854f80c9a7d46653 /mail/em-format-html.c
parentd26d8fe8ec5602bd5df2f66f6e07420cbbd5f441 (diff)
downloadgsoc2013-evolution-cee49f028644048a129fefd513a396a145bb0a90.tar.gz
gsoc2013-evolution-cee49f028644048a129fefd513a396a145bb0a90.tar.zst
gsoc2013-evolution-cee49f028644048a129fefd513a396a145bb0a90.zip
keep the windows charset filter around until we're done since if we set it
2004-01-09 Not Zed <NotZed@Ximian.com> * em-format.c (em_format_format_text): keep the windows charset filter around until we're done since if we set it up we reference its memory. Causes warnings and breaks message display. ** See bug #52637. * em-inline-filter.c (em_inline_filter_new): added a content-type paramter for the base content type. (em_inline_filter_finalize): free base content type. (emif_types[]): Added 'plain' parameter, indicates type needs plain parameters set on content type. (emif_add_part): inherit the full base type if it is set, for plain parts. * em-format-html.c (efh_text_plain): pass the part's content-type to the inline filter. svn path=/trunk/; revision=24121
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r--mail/em-format-html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index cf1ad35a52..47d23c9146 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -698,7 +698,7 @@ efh_text_plain(EMFormatHTML *efh, CamelStream *stream, CamelMimePart *part, EMFo
null = camel_stream_null_new();
filtered_stream = camel_stream_filter_new_with_stream(null);
camel_object_unref(null);
- inline_filter = em_inline_filter_new(camel_mime_part_get_encoding(part));
+ inline_filter = em_inline_filter_new(camel_mime_part_get_encoding(part), ((CamelDataWrapper *)part)->mime_type);
camel_stream_filter_add(filtered_stream, (CamelMimeFilter *)inline_filter);
camel_data_wrapper_write_to_stream(camel_medium_get_content_object((CamelMedium *)part), (CamelStream *)filtered_stream);
camel_stream_close((CamelStream *)filtered_stream);