talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 9b59699c9ede6cedd022cced9b1afe15aca0ff22
parent 3a6a70c7b3fa9288198c2aafc74b6d778b6320cb
Author: Paul <paul@claws-mail.org>
Date:   Wed, 30 Jul 2014 08:31:03 +0100

fix bug 3235, 'Extraneous double quotes inside base64-encoded From header confuse 'Reply' action'

Diffstat:
Msrc/unmime.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/unmime.c b/src/unmime.c @@ -134,7 +134,8 @@ gchar *unmime_header(const gchar *encoded_str, gboolean addr_field) * We check there are no quotes just to be sure. If there * are, well, the comma won't pose a problem, probably. */ - if (addr_field && strchr(decoded_text, ',') && !in_quote) { + if (addr_field && strchr(decoded_text, ',') && !in_quote && + !strchr(decoded_text, '"')) { gchar *tmp = g_strdup_printf("\"%s\"", decoded_text); g_free(decoded_text); decoded_text = tmp;