diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-07-12 06:30:51 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-07-12 06:30:51 +0800 |
commit | de180f6cbbabda73d445f802e83e12696bffdab6 (patch) | |
tree | ad2878824db97297218d37243c1c93a75f8d9b7e /camel/camel-mime-message.c | |
parent | 2415667b55dc62ef5e7eab157e0dde5ce71a9598 (diff) | |
download | gsoc2013-evolution-de180f6cbbabda73d445f802e83e12696bffdab6.tar gsoc2013-evolution-de180f6cbbabda73d445f802e83e12696bffdab6.tar.gz gsoc2013-evolution-de180f6cbbabda73d445f802e83e12696bffdab6.tar.bz2 gsoc2013-evolution-de180f6cbbabda73d445f802e83e12696bffdab6.tar.lz gsoc2013-evolution-de180f6cbbabda73d445f802e83e12696bffdab6.tar.xz gsoc2013-evolution-de180f6cbbabda73d445f802e83e12696bffdab6.tar.zst gsoc2013-evolution-de180f6cbbabda73d445f802e83e12696bffdab6.zip |
Fixes bug #27672
2002-07-11 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #27672
* camel-mime-filter-bestenc.c: Conditionally #include <config.h>
* camel-mime-filter-linewrap.c: Same here... although we could
probably just get rid of this filter? We don't seem to use it
anywhere since we try to QP/Base64 encode any text parts with long
lines. Besides, we couldn't use this filter for SMTP anyway since
we can't risk possibly linewrapping a binary mime part. I dunno,
maybe this could be useful in the composer though? *shrug*
* providers/smtp/camel-smtp-transport.c (smtp_data): Always call
camel_mime_message_set_best_encoding() even if the server allows
8BITMIME and even if we don't have any 8bit parts because we may
have parts with long lines (>998 octets) which also need to be
encoded.
* camel-mime-message.c (check_8bit): Don't forget to check for the
binary encoding here as well.
svn path=/trunk/; revision=17428
Diffstat (limited to 'camel/camel-mime-message.c')
-rw-r--r-- | camel/camel-mime-message.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index fe62c84ed5..0b21d98a57 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -660,10 +660,14 @@ camel_mime_message_foreach_part (CamelMimeMessage *msg, CamelPartFunc callback, static gboolean check_8bit (CamelMimeMessage *msg, CamelMimePart *part, void *data) { + CamelMimePartEncodingType encoding; int *has8bit = data; /* check this part, and stop as soon as we are done */ - *has8bit = camel_mime_part_get_encoding (part) == CAMEL_MIME_PART_ENCODING_8BIT; + encoding = camel_mime_part_get_encoding (part); + + *has8bit = encoding == CAMEL_MIME_PART_ENCODING_8BIT || encoding == CAMEL_MIME_PART_ENCODING_BINARY; + return !(*has8bit); } |