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:
committed by
Jeffrey Stedfast
parent
ea1ac521c7
commit
37ffc13dcb
@ -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
|
||||
|
||||
@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user