[evolution] Bug 668480 - Going to online from offline connects disabled accounts
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 668480 - Going to online from offline connects disabled accounts
- Date: Wed, 25 Jan 2012 04:09:30 +0000 (UTC)
commit c3a621bbed7c89882358616c69cdf72a1811780a
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Jan 24 23:09:00 2012 -0500
Bug 668480 - Going to online from offline connects disabled accounts
mail/e-mail-backend.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index 646b203..597a770 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]