aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-26 14:09:47 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-26 14:09:47 +0800
commit37ffc13dcb735d0863377a71bed3f78adf53d875 (patch)
tree0fb69ae4a9696c4f7bfddc9c13c79834dbc390be /mail
parentea1ac521c7eb58401bf2e177dc49c78054a42c16 (diff)
downloadgsoc2013-evolution-37ffc13dcb735d0863377a71bed3f78adf53d875.tar.gz
gsoc2013-evolution-37ffc13dcb735d0863377a71bed3f78adf53d875.tar.zst
gsoc2013-evolution-37ffc13dcb735d0863377a71bed3f78adf53d875.zip
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
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-callbacks.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 61b22d9f3d..6224b74690 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -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
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 1b088fe4df..8cd61f0557 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -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') {