diff options
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 5 | ||||
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 87229237fd..470f00fc06 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2000-04-28 Dan Winship <danw@helixcode.com> + + * e-msg-composer-hdrs.c (set_recipients): Update (minimally) for + Camel recipient changes. + 2000-04-27 Dan Winship <danw@helixcode.com> * e-msg-composer.c (e_msg_composer_new_from_url): New routine, to diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index e69c15efae..fb6d5adf3f 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -249,6 +249,7 @@ set_recipients (CamelMimeMessage *msg, EMsgComposerAddressEntry *entry; GList *list; GList *p; + struct _header_address *addr; entry = E_MSG_COMPOSER_ADDRESS_ENTRY (entry_widget); list = e_msg_composer_address_entry_get_addresses (entry); @@ -256,8 +257,10 @@ set_recipients (CamelMimeMessage *msg, /* FIXME leak? */ for (p = list; p != NULL; p = p->next) { - printf ("Adding `%s:' header: %s\n", type, (gchar *) p->data); - camel_mime_message_add_recipient (msg, type, (gchar *) p->data); + addr = header_address_decode (p->data); + camel_mime_message_add_recipient (msg, type, addr->name, + addr->v.addr); + header_address_unref (addr); } g_list_free (list); |