aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c5
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);