aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-07 03:05:22 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-07 03:05:22 +0800
commitff1f5fc3ddc9993deb0243f3eddf292da93222da (patch)
treee0ff13a17fe550c46a6b6669924cf93773268f78 /camel/camel-mime-utils.c
parent734f0a9402b4f7f66a36281fb577f3e47eaaa574 (diff)
downloadgsoc2013-evolution-ff1f5fc3ddc9993deb0243f3eddf292da93222da.tar
gsoc2013-evolution-ff1f5fc3ddc9993deb0243f3eddf292da93222da.tar.gz
gsoc2013-evolution-ff1f5fc3ddc9993deb0243f3eddf292da93222da.tar.bz2
gsoc2013-evolution-ff1f5fc3ddc9993deb0243f3eddf292da93222da.tar.lz
gsoc2013-evolution-ff1f5fc3ddc9993deb0243f3eddf292da93222da.tar.xz
gsoc2013-evolution-ff1f5fc3ddc9993deb0243f3eddf292da93222da.tar.zst
gsoc2013-evolution-ff1f5fc3ddc9993deb0243f3eddf292da93222da.zip
Fix so that we don't encode every single char in the word. Also, do we
2000-10-06 Jeffrey Stedfast <fejj@helixcode.com> * 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
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c4
1 files changed, 2 insertions, 2 deletions
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;
}