From 2e7d848819590e79da44c6088de4633f15177e22 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sun, 28 May 2000 17:36:54 +0000 Subject: Use `foo@bar' rather than `"" ' for email addresses with no name * camel-mime-utils.c (header_address_list_format_append): Use `foo@bar' rather than `"" ' for email addresses with no name component. svn path=/trunk/; revision=3248 --- camel/camel-mime-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'camel/camel-mime-utils.c') 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); -- cgit