diff options
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 6 |
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)); |