diff options
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |