diff options
author | Milan Crha <mcrha@redhat.com> | 2010-11-30 02:48:58 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:05 +0800 |
commit | e419261d1841fa38c0c41f5eaddd9b790ab85996 (patch) | |
tree | 6b091c8fc33450647ff711d1b5cec9f61fee4de3 /mail/mail-send-recv.c | |
parent | 85fd7a2026a704aa6814c859517b04c62b8459cd (diff) | |
download | gsoc2013-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.c | 8 |
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", |