[evolution-mapi] Bug #668631 - Folder->Subscriptions cannot be managed in offline
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Bug #668631 - Folder->Subscriptions cannot be managed in offline
- Date: Wed, 25 Jan 2012 18:15:28 +0000 (UTC)
commit a4fa7635b6160599f89ed7d3a8872d3d0c4a98a2
Author: Milan Crha <mcrha redhat com>
Date: Wed Jan 25 19:15:04 2012 +0100
Bug #668631 - Folder->Subscriptions cannot be managed in offline
src/camel/camel-mapi-store.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-mapi-store.c b/src/camel/camel-mapi-store.c
index efff94c..eb2e29c 100644
--- a/src/camel/camel-mapi-store.c
+++ b/src/camel/camel-mapi-store.c
@@ -1085,6 +1085,15 @@ mapi_store_get_folder_info_sync (CamelStore *store,
CamelMapiStore *mapi_store = CAMEL_MAPI_STORE (store);
CamelService *service;
+ if (!camel_offline_store_get_online (CAMEL_OFFLINE_STORE (store)) &&
+ (flags & CAMEL_STORE_FOLDER_INFO_SUBSCRIPTION_LIST) != 0) {
+ g_set_error (
+ error, CAMEL_SERVICE_ERROR,
+ CAMEL_SERVICE_ERROR_UNAVAILABLE,
+ _("Folder list not available in offline mode."));
+ return NULL;
+ }
+
service = CAMEL_SERVICE (store);
camel_service_lock (service, CAMEL_SERVICE_REC_CONNECT_LOCK);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]