[evolution] Bug #494531 - Use quoted-printable encoding when necessary
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Bug #494531 - Use quoted-printable encoding when necessary
- Date: Mon, 31 Aug 2009 11:09:54 +0000 (UTC)
commit cd0112576878cb5de3930835ff09f1562e9f5c10
Author: David Liang <dliang novell com>
Date: Mon Aug 31 13:07:00 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 1b2d5c6..02e5db7 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -283,7 +283,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;
@@ -703,6 +703,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]