aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-05-29 01:36:54 +0800
committerDan Winship <danw@src.gnome.org>2000-05-29 01:36:54 +0800
commit2e7d848819590e79da44c6088de4633f15177e22 (patch)
tree3d78caf77e3b89b7ec52d9b2abddcae484ee17da /camel/camel-mime-utils.c
parentfbd1a80e319890c83423912913238a63f0478424 (diff)
downloadgsoc2013-evolution-2e7d848819590e79da44c6088de4633f15177e22.tar
gsoc2013-evolution-2e7d848819590e79da44c6088de4633f15177e22.tar.gz
gsoc2013-evolution-2e7d848819590e79da44c6088de4633f15177e22.tar.bz2
gsoc2013-evolution-2e7d848819590e79da44c6088de4633f15177e22.tar.lz
gsoc2013-evolution-2e7d848819590e79da44c6088de4633f15177e22.tar.xz
gsoc2013-evolution-2e7d848819590e79da44c6088de4633f15177e22.tar.zst
gsoc2013-evolution-2e7d848819590e79da44c6088de4633f15177e22.zip
Use `foo@bar' rather than `"" <foo@bar>' for email addresses with no name
* camel-mime-utils.c (header_address_list_format_append): Use `foo@bar' rather than `"" <foo@bar>' for email addresses with no name component. svn path=/trunk/; revision=3248
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c4
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);