From ff1f5fc3ddc9993deb0243f3eddf292da93222da Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 6 Oct 2000 19:05:22 +0000 Subject: Fix so that we don't encode every single char in the word. Also, do we 2000-10-06 Jeffrey Stedfast * camel-mime-utils.c (quoted_encode): Fix so that we don't encode every single char in the word. Also, do we need a safemask? I don't see why we would. (header_encode_string): Don't strip off the last char!! svn path=/trunk/; revision=5766 --- camel/ChangeLog | 1 + camel/camel-mime-utils.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 37ba9b0de7..41e8ee96eb 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -3,6 +3,7 @@ * camel-mime-utils.c (quoted_encode): Fix so that we don't encode every single char in the word. Also, do we need a safemask? I don't see why we would. + (header_encode_string): Don't strip off the last char!! 2000-10-06 Chris Toshok diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 3ddc8abf74..510a4e3735 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -1190,10 +1190,10 @@ header_encode_string(const unsigned char *in) out = g_string_append_len(out, start, inptr-start); break; case 1: - rfc2047_encode_word(out, start, inptr-start-1, "ISO-8859-1", IS_ESAFE); + rfc2047_encode_word(out, start, inptr-start, "ISO-8859-1", IS_ESAFE); break; case 2: - rfc2047_encode_word(out, start, inptr-start-1, + rfc2047_encode_word(out, start, inptr-start, camel_charset_best(start, inptr-start-1), IS_ESAFE); break; } -- cgit v1.2.3