aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-30 02:48:58 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:05 +0800
commite419261d1841fa38c0c41f5eaddd9b790ab85996 (patch)
tree6b091c8fc33450647ff711d1b5cec9f61fee4de3 /mail/mail-send-recv.c
parent85fd7a2026a704aa6814c859517b04c62b8459cd (diff)
downloadgsoc2013-evolution-e419261d1841fa38c0c41f5eaddd9b790ab85996.tar.gz
gsoc2013-evolution-e419261d1841fa38c0c41f5eaddd9b790ab85996.tar.zst
gsoc2013-evolution-e419261d1841fa38c0c41f5eaddd9b790ab85996.zip
Bug #633949 - Add an option to disable new e-mail check at startup
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index cdcce0455d..deb38eb24a 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -1252,7 +1252,13 @@ mail_autoreceive_init (EMailBackend *backend)
shell_backend = E_SHELL_BACKEND (backend);
shell = e_shell_backend_get_shell (shell_backend);
- auto_online (shell);
+ if (e_shell_settings_get_boolean (e_shell_get_shell_settings (shell), "mail-check-on-start")) {
+ auto_online (shell);
+
+ /* also flush outbox on start */
+ if (e_shell_get_online (shell))
+ mail_send (session);
+ }
g_signal_connect (
shell, "notify::online",