From f0eabd3c20b608c95f4a8e51ed34fcaedd5e435b Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 13 Aug 2003 16:41:18 +0000 Subject: If the content is base64/qp/uu/etc encoded but the part is 7bit/8bit/(or 2003-08-13 Jeffrey Stedfast * camel-mime-part.c (write_to_stream): If the content is base64/qp/uu/etc encoded but the part is 7bit/8bit/(or otherwise non-encoded), set reencode to TRUE so that we decode the original content stream. Fixes a bug noticed on evolution-patches@ximian.com where a patch had a Content-Transfer-Encoding of 7bit but was base64 encoded. svn path=/trunk/; revision=22217 --- camel/ChangeLog | 9 +++++++++ camel/camel-mime-part.c | 2 ++ 2 files changed, 11 insertions(+) diff --git a/camel/ChangeLog b/camel/ChangeLog index 39bb9482fa..b1e3b95563 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,12 @@ +2003-08-13 Jeffrey Stedfast + + * camel-mime-part.c (write_to_stream): If the content is + base64/qp/uu/etc encoded but the part is 7bit/8bit/(or otherwise + non-encoded), set reencode to TRUE so that we decode the original + content stream. Fixes a bug noticed on + evolution-patches@ximian.com where a patch had a + Content-Transfer-Encoding of 7bit but was base64 encoded. + 2003-08-13 Not Zed * camel-folder-summary.c (camel_folder_summary_remove_range): Fix diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index a31c179d99..5fdfac5ef8 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -703,6 +703,8 @@ write_to_stream (CamelDataWrapper *dw, CamelStream *stream) filter = (CamelMimeFilter *) camel_mime_filter_basic_new_type (CAMEL_MIME_FILTER_BASIC_UU_ENC); break; default: + /* content is encoded but the part doesn't want to be... */ + reencode = TRUE; break; } } -- cgit v1.2.3