From a0b931d89d3ef4b2b1ab294e3b8c1f960a3045e7 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 4 Oct 2002 17:24:45 +0000 Subject: Use the content-object's rawtext flag to decide if it needs to be filtered 2002-10-03 Jeffrey Stedfast * camel-mime-part.c (write_to_stream): Use the content-object's rawtext flag to decide if it needs to be filtered through the charset filter instead of using the mime part's rawtext flag since this will never be set. Partial fix for bug #31655. svn path=/trunk/; revision=18323 --- camel/ChangeLog | 7 +++++++ camel/camel-mime-part.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 0a60f67c1f..6af81525f5 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2002-10-03 Jeffrey Stedfast + + * camel-mime-part.c (write_to_stream): Use the content-object's + rawtext flag to decide if it needs to be filtered through the + charset filter instead of using the mime part's rawtext flag since + this will never be set. Partial fix for bug #31655. + 2002-10-03 Not Zed * camel-folder.c (folder_changed): Dont get the filter driver diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index 320324701b..8d5730c904 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -713,7 +713,7 @@ write_to_stream(CamelDataWrapper *data_wrapper, CamelStream *stream) break; } - if (!data_wrapper->rawtext && header_content_type_is(mp->content_type, "text", "*")) { + if (!content->rawtext && header_content_type_is(mp->content_type, "text", "*")) { charset = header_content_type_param(mp->content_type, "charset"); if (charset && !(!strcasecmp(charset, "us-ascii") || !strcasecmp(charset, "utf-8"))) { charenc = (CamelMimeFilter *)camel_mime_filter_charset_new_convert("UTF-8", charset); -- cgit