Use e_destination_get_email() instead of e_destination_get_address() when

2003-01-04  Jeffrey Stedfast  <fejj@ximian.com>

	* 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
This commit is contained in:
Jeffrey Stedfast
2003-01-04 23:12:17 +00:00
committed by Jeffrey Stedfast
parent 73fa3a6e62
commit 980b281b5a
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,13 @@
2003-01-04 Jeffrey Stedfast <fejj@ximian.com>
* 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.
2003-01-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c: Fixed some build issues.

View File

@ -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++;