diff options
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-mime-utils.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 9e0455b079..e9e6b4dbd6 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2001-02-01 Not Zed <NotZed@Ximian.com> + + * camel-mime-utils.c (header_fold): If we are folding, drop the + space at the end of the line. + 2001-01-30 Not Zed <NotZed@Ximian.com> * camel-remote-store.c (timeout_cb): Remvoe the stream locking diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index b7a14992d8..0b77dbe9c8 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -3153,6 +3153,9 @@ header_fold(const char *in, int headerlen) d(printf("next word '%.*s'\n", len, inptr)); if (outlen + len > CAMEL_FOLD_SIZE) { d(printf("outlen = %d wordlen = %d\n", outlen, len)); + /* strip trailing space */ + if (out->len > 0 && out->str[out->len-1] == ' ') + g_string_truncate(out, out->len-1); g_string_append(out, "\n\t"); outlen = 1; /* check for very long words, just cut them up */ |