diff options
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 3a2828ff36..af7e9356e1 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -2299,10 +2299,10 @@ header_address_list_format_append(GString *out, struct _header_address *a) case HEADER_ADDRESS_NAME: #warning needs to rfc2047 encode address phrase /* FIXME: 2047 encoding?? */ - if (a->name) + if (a->name && *a->name) g_string_sprintfa(out, "\"%s\" <%s>", a->name, a->v.addr); else - g_string_sprintfa(out, "<%s>", a->v.addr); + g_string_append(out, a->v.addr); break; case HEADER_ADDRESS_GROUP: text = header_encode_string(a->name); |