aboutsummaryrefslogtreecommitdiffstats
path: root/mail
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
parent73a72a3b270288076834c304a7f6893c47b1de3f (diff)
downloadgsoc2013-evolution-4700cd0784eb9eef49ada22323f6a2060aa63dd6.tar
gsoc2013-evolution-4700cd0784eb9eef49ada22323f6a2060aa63dd6.tar.gz
gsoc2013-evolution-4700cd0784eb9eef49ada22323f6a2060aa63dd6.tar.bz2
gsoc2013-evolution-4700cd0784eb9eef49ada22323f6a2060aa63dd6.tar.lz
gsoc2013-evolution-4700cd0784eb9eef49ada22323f6a2060aa63dd6.tar.xz
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')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-callbacks.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 7aa82051ca..974e7f21ee 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,11 @@
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.
+
+2002-07-05 Jeffrey Stedfast <fejj@ximian.com>
+
* main.c (main): No longer need to pass a postpone_cb function
into the composer factory_init.
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));