aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-07-06 05:15:09 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-07-06 05:15:09 +0800
commit4700cd0784eb9eef49ada22323f6a2060aa63dd6 (patch)
tree40c5fae42d7d238b56e76a458554615dc4c7f023 /mail/mail-callbacks.c
parent73a72a3b270288076834c304a7f6893c47b1de3f (diff)
downloadgsoc2013-evolution-4700cd0784eb9eef49ada22323f6a2060aa63dd6.tar.gz
gsoc2013-evolution-4700cd0784eb9eef49ada22323f6a2060aa63dd6.tar.zst
gsoc2013-evolution-4700cd0784eb9eef49ada22323f6a2060aa63dd6.zip
Only queue a send operation if we are in Online mode, otherwise don't
2002-07-05 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_send_queued_cb): Only queue a send operation if we are in Online mode, otherwise don't bother wasting our time. svn path=/trunk/; revision=17381
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 37de09fde6..c00515135e 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -356,8 +356,10 @@ composer_send_queued_cb (CamelFolder *folder, CamelMimeMessage *msg, CamelMessag
}
gtk_widget_destroy (GTK_WIDGET (send->composer));
- /* queue a message send */
- mail_send ();
+ if (camel_session_is_online (session)) {
+ /* queue a message send */
+ mail_send ();
+ }
} else {
e_msg_composer_set_enable_autosave (send->composer, TRUE);
gtk_widget_show (GTK_WIDGET (send->composer));