diff options
author | Not Zed <NotZed@Ximian.com> | 2001-02-23 07:25:40 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-02-23 07:25:40 +0800 |
commit | 0af3e545203107534c7dac6dae0c8f7a009a7fe3 (patch) | |
tree | 9caa87a5a4a57f221b99d30ab4321e7d644d1d9e /mail/mail-send-recv.c | |
parent | 7cf1665ab87b3791549a2530687638da9a0d1135 (diff) | |
download | gsoc2013-evolution-0af3e545203107534c7dac6dae0c8f7a009a7fe3.tar.gz gsoc2013-evolution-0af3e545203107534c7dac6dae0c8f7a009a7fe3.tar.zst gsoc2013-evolution-0af3e545203107534c7dac6dae0c8f7a009a7fe3.zip |
Only allow downloading if the source is enabled at this time.
2001-02-23 Not Zed <NotZed@Ximian.com>
* mail-send-recv.c (build_dialogue): Only allow downloading if the
source is enabled at this time.
(mail_autoreceive_setup): Check for enabled sources before setting
up autodownload.
* mail-vtrash.c
(get_trash_free): Free store if we have it.
(get_trash_got): Move vtrash add into here, so we execute in the
right thread.
svn path=/trunk/; revision=8354
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 299a07289a..c037568d24 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -228,7 +228,8 @@ static struct _send_data *build_dialogue(GSList *sources, CamelFolder *outbox, c while (sources) { MailConfigService *source = sources->data; - if (!source->url) { + if (!source->url + || !source->enabled) { sources = sources->next; continue; } @@ -695,7 +696,7 @@ mail_autoreceive_setup(void) while (sources) { MailConfigService *source = sources->data; - if (source->url && source->auto_check) { + if (source->url && source->auto_check && source->enabled) { struct _auto_data *info; printf("setting up auto-receive mail for : %s\n", source->url); |