From 9b59699c9ede6cedd022cced9b1afe15aca0ff22 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 30 Jul 2014 08:31:03 +0100 Subject: [PATCH] fix bug 3235, 'Extraneous double quotes inside base64-encoded From header confuse 'Reply' action' --- src/unmime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unmime.c b/src/unmime.c index 6dee7f3a3..2054c14f8 100644 --- 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; -- 2.25.1