[evolution-data-server/meego-eds] Don't sync local store. Sync only remote stores, which only makes sense.



commit 2227f1a6e10ed880692edc05c9eb27da129592a8
Author: Srinivasa Ragavan <sragavan gnome org>
Date:   Wed Jul 13 14:49:27 2011 -0700

    Don't sync local store. Sync only remote stores, which only makes sense.

 mail/daemon/main.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/mail/daemon/main.c b/mail/daemon/main.c
index c4f0b39..d84849e 100644
--- a/mail/daemon/main.c
+++ b/mail/daemon/main.c
@@ -57,6 +57,12 @@ mail_sync_store_cb (CamelStore *store,
                     const gchar *display_name,
                     gpointer not_used)
 {
+	CamelService *service = (CamelService *)store;
+	
+	/* Don't have to sync the local store. Only remote needs to be synced. */
+	if (strcmp(service->url->protocol, "mbox") == 0)
+		return;
+
 	mail_sync_in_progress++;
 
 	mail_sync_store (



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]