[evolution-ews] Re-add to configuration file calendar, tasks and contacts each time when cache was removed This will
- From: Pavel Ocheretny <pocheretny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Re-add to configuration file calendar, tasks and contacts each time when cache was removed This will
- Date: Thu, 28 Jul 2011 07:43:29 +0000 (UTC)
commit 55c69fe08475ffeb81ebb73ae8791c8ccb10c230
Author: Pavel Ocheretny <pocheretny src gnome org>
Date: Thu Jul 28 10:44:58 2011 +0300
Re-add to configuration file calendar, tasks and contacts each time when cache was removed
This will allow users quietly move to SOAP version Exchange_2007_SP1
src/camel/camel-ews-store.c | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/src/camel/camel-ews-store.c b/src/camel/camel-ews-store.c
index 3f4a1fa..9bb1e1f 100644
--- a/src/camel/camel-ews-store.c
+++ b/src/camel/camel-ews-store.c
@@ -45,6 +45,7 @@
#include "camel-ews-store.h"
#include "camel-ews-summary.h"
#include "camel-ews-utils.h"
+#include "ews-esource-utils.h"
#ifdef G_OS_WIN32
#include <winsock2.h>
@@ -448,6 +449,11 @@ ews_refresh_finfo (CamelSession *session, CamelSessionThreadMsg *msg)
sync_state = camel_ews_store_summary_get_string_val (ews_store->summary, "sync_state", NULL);
+ if (!sync_state) {
+ CamelURL *url = CAMEL_SERVICE (m->store)->url;
+ ews_esource_utils_remove_groups (camel_url_get_param (url, "email"));
+ }
+
sync_data = g_new0 (struct _store_sync_data, 1);
sync_data->ews_store = ews_store;
e_ews_connection_sync_folder_hierarchy_start (ews_store->priv->cnc, EWS_PRIORITY_MEDIUM,
@@ -494,6 +500,13 @@ ews_get_folder_info_sync (CamelStore *store, const gchar *top, guint32 flags, EV
goto offline;
}
+ sync_state = camel_ews_store_summary_get_string_val (ews_store->summary, "sync_state", NULL);
+ if (!sync_state) {
+ CamelURL *url = CAMEL_SERVICE (store)->url;
+ ews_esource_utils_remove_groups (camel_url_get_param (url, "email"));
+ initial_setup = TRUE;
+ }
+
folders = camel_ews_store_summary_get_folders (ews_store->summary, NULL);
if (!folders)
initial_setup = TRUE;
@@ -517,9 +530,6 @@ ews_get_folder_info_sync (CamelStore *store, const gchar *top, guint32 flags, EV
g_slist_foreach (folders, (GFunc)g_free, NULL);
g_slist_free (folders);
- sync_state = camel_ews_store_summary_get_string_val (ews_store->summary, "sync_state", NULL);
-
-
if (!e_ews_connection_sync_folder_hierarchy (ews_store->priv->cnc, EWS_PRIORITY_MEDIUM,
&sync_state, &includes_last_folder,
&folders_created, &folders_updated,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]