[evolution/gnome-2-28] Bug #494531 - Use quoted-printable encoding when necessary
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution/gnome-2-28] Bug #494531 - Use quoted-printable encoding when necessary
- Date: Mon, 31 Aug 2009 11:10:24 +0000 (UTC)
commit 7142d67304ded9b04bd820ce417b1d7994c1ebd4
Author: David Liang <dliang novell com>
Date: Mon Aug 31 13:09:32 2009 +0200
Bug #494531 - Use quoted-printable encoding when necessary
For example when part body contains a line longer than some max.
composer/e-msg-composer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 178f3cd..3edfdbc 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -205,7 +205,7 @@ best_encoding (GByteArray *buf, const gchar *charset)
if (status == (gsize) -1 || status > 0)
return -1;
- if (count == 0)
+ if ((count == 0) && (buf->len < LINE_LEN))
return CAMEL_TRANSFER_ENCODING_7BIT;
else if (count <= buf->len * 0.17)
return CAMEL_TRANSFER_ENCODING_QUOTEDPRINTABLE;
@@ -623,6 +623,7 @@ build_message (EMsgComposer *composer,
part = camel_mime_part_new ();
camel_medium_set_content_object (CAMEL_MEDIUM (part), html);
camel_object_unref (html);
+ camel_mime_part_set_encoding (part, CAMEL_TRANSFER_ENCODING_QUOTEDPRINTABLE);
camel_multipart_add_part (body, part);
camel_object_unref (part);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]