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

This commit is contained in:
Paul 2014-07-30 08:31:03 +01:00
parent 3a6a70c7b3
commit 9b59699c9e

View file

@ -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;