diff options
Diffstat (limited to 'camel/camel-internet-address.c')
-rw-r--r-- | camel/camel-internet-address.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/camel/camel-internet-address.c b/camel/camel-internet-address.c index 003cae5b48..9abbc8c632 100644 --- a/camel/camel-internet-address.c +++ b/camel/camel-internet-address.c @@ -129,11 +129,11 @@ static char * internet_encode (CamelAddress *a) if (i!=0) g_string_append(out, ", "); - if (name) { - g_string_sprintfa(out, "%s ", name); + if (name && *name) { + g_string_sprintfa(out, "%s <%s>", name, addr->address); g_free(name); - } - g_string_sprintfa(out, "<%s>", addr->address); + } else + g_string_sprintfa(out, "%s", addr->address); } ret = out->str; g_string_free(out, FALSE); |