Fix so that we don't encode every single char in the word. Also, do we
authorJeffrey Stedfast <fejj@helixcode.com>
Fri, 6 Oct 2000 19:05:22 +0000 (19:05 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Fri, 6 Oct 2000 19:05:22 +0000 (19:05 +0000)
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!!

camel/ChangeLog
camel/camel-mime-utils.c

index 37ba9b0..41e8ee9 100644 (file)
@@ -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  <toshok@helixcode.com>
 
index 3ddc8ab..510a4e3 100644 (file)
@@ -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;
                }