[evolution-kolab] KolabMailAccess: do not sync with server when going online
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab] KolabMailAccess: do not sync with server when going online
- Date: Mon, 3 Sep 2012 16:58:55 +0000 (UTC)
commit e4db4e88d0b93a825ead6446df8e72d90ec8afd8
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Mon Sep 3 18:56:02 2012 +0200
KolabMailAccess: do not sync with server when going online
* do no longer implicitly synchronize with the
Kolab server when switching from offline to
online operational mode
* instead, we're calling the synchronize() function
inside the start_view() functions of the backends
src/libekolab/kolab-mail-access.c | 22 +---------------------
1 files changed, 1 insertions(+), 21 deletions(-)
---
diff --git a/src/libekolab/kolab-mail-access.c b/src/libekolab/kolab-mail-access.c
index 973f4a4..6ae7c49 100644
--- a/src/libekolab/kolab-mail-access.c
+++ b/src/libekolab/kolab-mail-access.c
@@ -1208,26 +1208,6 @@ mail_access_strans_offline_online (KolabMailAccess *self,
return FALSE;
}
- /* Up to 3.4, we've been synchronizing folder metadata and
- * PIM payload data with the Kolab server here. This can now
- * be done in a separate synchronization function, which
- * can be called upon per user request or at any place internally
- * where it seems fit (e.g. when switching views - but beware,
- * that operation can become quite bulky and time consuming).
- * Until we get a synchronize() backend API function, we will
- * put a sync point here to mimick the previous behaviour.
- */
- ok = mail_access_sync_with_server (self,
- KOLAB_MAIL_ACCESS_OPMODE_ONLINE,
- NULL, /* all folders */
- TRUE, /* full sync */
- cancellable,
- &tmp_err);
- if (! ok) {
- g_propagate_error (err, tmp_err);
- return FALSE;
- }
-
g_debug ("KolabMailAccess: new state: online");
priv->state->opmode = KOLAB_MAIL_ACCESS_OPMODE_ONLINE;
@@ -3246,7 +3226,7 @@ kolab_mail_access_synchronize (KolabMailAccess *self,
/* foldername will be NULL if sourcename is NULL */
foldername = mail_access_foldername_new_from_sourcename (self,
sourcename,
- TRUE,
+ FALSE,
&tmp_err);
if (tmp_err != NULL) {
ok = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]