From 980b281b5aa15dc044f49469dff74f63316d864f Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 4 Jan 2003 23:12:17 +0000 Subject: Use e_destination_get_email() instead of e_destination_get_address() when 2003-01-04 Jeffrey Stedfast * mail-callbacks.c (composer_get_message): Use e_destination_get_email() instead of e_destination_get_address() when checking that we have a list of valid recipients to send the message to because get_email() returns the addr-spec portion of the address, which is what we care about. if that doesn't exist, then the address is useless. This does all we can do mailer-side for the recent "SMTP Problem" thread. svn path=/trunk/; revision=19236 --- mail/mail-callbacks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail/mail-callbacks.c') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 4b32f5cae5..1401364ed6 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -409,7 +409,7 @@ composer_get_message (EMsgComposer *composer, gboolean post, gboolean save_html_ /* see which ones are visible/present, etc */ if (recipients) { for (i = 0; recipients[i] != NULL; i++) { - const char *addr = e_destination_get_address (recipients[i]); + const char *addr = e_destination_get_email (recipients[i]); if (addr && addr[0]) { num++; @@ -426,7 +426,7 @@ composer_get_message (EMsgComposer *composer, gboolean post, gboolean save_html_ recipients_bcc = e_msg_composer_get_bcc (composer); if (recipients_bcc) { for (i = 0; recipients_bcc[i] != NULL; i++) { - const char *addr = e_destination_get_address (recipients_bcc[i]); + const char *addr = e_destination_get_email (recipients_bcc[i]); if (addr && addr[0]) num_bcc++; -- cgit v1.2.3