From 7ba4d2bed216c730dc68891d09c6523b0adf84da Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 28 Sep 2000 23:57:54 +0000 Subject: Make sure to add the space char after an encoded word when the encoding is 2000-09-28 Jeffrey Stedfast * camel-mime-utils.c (header_encode_string): Make sure to add the space char after an encoded word when the encoding is iso-8859-1. svn path=/trunk/; revision=5626 --- camel/ChangeLog | 5 +++++ camel/camel-mime-utils.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/camel/ChangeLog b/camel/ChangeLog index fbf7c83e35..8d74db275f 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2000-09-28 Jeffrey Stedfast + + * camel-mime-utils.c (header_encode_string): Make sure to add the + space char after an encoded word when the encoding is iso-8859-1. + 2000-09-28 Jeffrey Stedfast * providers/imap/camel-imap-folder.c (imap_get_message): When diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index a949056a68..907fc7e4fb 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -1093,12 +1093,14 @@ header_encode_string(const unsigned char *in) } inptr = newinptr; if (unicode_isspace(c)) { + /* we've reached the end of a 'word' */ switch (encoding) { case 0: 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); + out = g_string_append_c (out, c); break; case 2: rfc2047_encode_word(out, start, inptr-start-1, -- cgit v1.2.3