aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-message.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-06-11 23:59:30 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-06-11 23:59:30 +0800
commit2c194837766ea2c43963080f67968fcd21d87137 (patch)
tree0bca9d86abc052c890ae3d34f4065b06dcbe1666 /camel/camel-mime-message.c
parent59581dc2d31b2c7833115b35a4ec2fdc84a5cffb (diff)
downloadgsoc2013-evolution-2c194837766ea2c43963080f67968fcd21d87137.tar.gz
gsoc2013-evolution-2c194837766ea2c43963080f67968fcd21d87137.tar.zst
gsoc2013-evolution-2c194837766ea2c43963080f67968fcd21d87137.zip
Add the CAMEL_BESTENC_TEXT bit to enctype if the part is a text part.
2003-06-09 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-message.c (find_best_encoding): Add the CAMEL_BESTENC_TEXT bit to enctype if the part is a text part. * camel-mime-filter-bestenc.c (camel_mime_filter_bestenc_get_best_encoding): If we have any nul-bytes or if the content is non-text and contains any 8bit octets, we need to use base64. Fixes bug #44344. svn path=/trunk/; revision=21409
Diffstat (limited to 'camel/camel-mime-message.c')
-rw-r--r--camel/camel-mime-message.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c
index 7f14218286..dab789cfaf 100644
--- a/camel/camel-mime-message.c
+++ b/camel/camel-mime-message.c
@@ -702,6 +702,7 @@ find_best_encoding (CamelMimePart *part, CamelBestencRequired required, CamelBes
istext = header_content_type_is (part->content_type, "text", "*");
if (istext) {
flags = CAMEL_BESTENC_GET_CHARSET | CAMEL_BESTENC_GET_ENCODING;
+ enctype |= CAMEL_BESTENC_TEXT;
} else {
flags = CAMEL_BESTENC_GET_ENCODING;
}