aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-mime-utils.c4
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);