diff options
author | Dan Winship <danw@src.gnome.org> | 2000-05-29 01:36:54 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-05-29 01:36:54 +0800 |
commit | 2e7d848819590e79da44c6088de4633f15177e22 (patch) | |
tree | 3d78caf77e3b89b7ec52d9b2abddcae484ee17da /camel | |
parent | fbd1a80e319890c83423912913238a63f0478424 (diff) | |
download | gsoc2013-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')
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/camel-mime-utils.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index b9a2c775dc..17c2b05f88 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2000-05-28 Dan Winship <danw@helixcode.com> + + * camel-mime-utils.c (header_address_list_format_append): Use + `foo@bar' rather than `"" <foo@bar>' for email addresses with no + name component. + 2000-05-27 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-store.c: Removed 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); |