aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-08-14 00:41:18 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-08-14 00:41:18 +0800
commitf0eabd3c20b608c95f4a8e51ed34fcaedd5e435b (patch)
treedb9e99a4fa686c24069e9412f73db3a5f1c493e3
parent8cd62879327d3068f6ef8e243cf275278c2265a6 (diff)
downloadgsoc2013-evolution-f0eabd3c20b608c95f4a8e51ed34fcaedd5e435b.tar
gsoc2013-evolution-f0eabd3c20b608c95f4a8e51ed34fcaedd5e435b.tar.gz
gsoc2013-evolution-f0eabd3c20b608c95f4a8e51ed34fcaedd5e435b.tar.bz2
gsoc2013-evolution-f0eabd3c20b608c95f4a8e51ed34fcaedd5e435b.tar.lz
gsoc2013-evolution-f0eabd3c20b608c95f4a8e51ed34fcaedd5e435b.tar.xz
gsoc2013-evolution-f0eabd3c20b608c95f4a8e51ed34fcaedd5e435b.tar.zst
gsoc2013-evolution-f0eabd3c20b608c95f4a8e51ed34fcaedd5e435b.zip
If the content is base64/qp/uu/etc encoded but the part is 7bit/8bit/(or
2003-08-13 Jeffrey Stedfast <fejj@ximian.com> * 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
-rw-r--r--camel/ChangeLog9
-rw-r--r--camel/camel-mime-part.c2
2 files changed, 11 insertions, 0 deletions
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 <fejj@ximian.com>
+
+ * 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 <NotZed@Ximian.com>
* 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;
}
}