aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/e-mail-backend.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index 646b203aa1..597a770222 100644
--- a/mail/e-mail-backend.c
+++ b/mail/e-mail-backend.c
@@ -190,12 +190,20 @@ mail_backend_prepare_for_online_cb (EShell *shell,
for (link = list; link != NULL; link = g_list_next (link)) {
CamelService *service;
+ EAccount *account;
+ const gchar *uid;
service = CAMEL_SERVICE (link->data);
if (!CAMEL_IS_STORE (service))
continue;
+ uid = camel_service_get_uid (service);
+ account = e_get_account_by_uid (uid);
+
+ if (account != NULL && !account->enabled)
+ continue;
+
/* FIXME Not passing a GCancellable. */
e_mail_store_go_online (
CAMEL_STORE (service), G_PRIORITY_DEFAULT,