Check for the TO recipient list being NULL and don't send.

2000-10-26  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-callbacks.c (composer_send_cb): Check for the TO recipient
	list being NULL and don't send.

svn path=/trunk/; revision=6201
This commit is contained in:
Jeffrey Stedfast
2000-10-26 06:09:47 +00:00
committed by Jeffrey Stedfast
parent ea1ac521c7
commit 37ffc13dcb
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-10-26 Jeffrey Stedfast <fejj@helixcode.com>
* mail-callbacks.c (composer_send_cb): Check for the TO recipient
list being NULL and don't send.
2000-10-25 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_send_mail): Don't forget to unref the

View File

@ -281,6 +281,12 @@ composer_send_cb (EMsgComposer *composer, gpointer data)
/* Get the message */
message = e_msg_composer_get_message (composer);
/* Check for no recipients */
if (!camel_mime_message_get_recipients (message, CAMEL_RECIPIENT_TYPE_TO)) {
camel_object_unref (CAMEL_OBJECT (message));
return;
}
/* Check for no subject */
subject = camel_mime_message_get_subject (message);
if (subject == NULL || subject[0] == '\0') {