From 0af3e545203107534c7dac6dae0c8f7a009a7fe3 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 22 Feb 2001 23:25:40 +0000 Subject: Only allow downloading if the source is enabled at this time. 2001-02-23 Not Zed * 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 --- mail/mail-send-recv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mail/mail-send-recv.c') 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); -- cgit