[evolution-data-server] store_synchronize_sync(): Only sync subscribed folders.



commit 48b9d17d16be9f0ecb6066036cc83d08b3cca817
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Feb 1 07:45:56 2013 -0500

    store_synchronize_sync(): Only sync subscribed folders.
    
    I recently added a Gmane (NNTP) account and have only a few newsgroup
    subscriptions.  Yet when I quit Evolution, Camel tries to synchronize
    all 13,872 newsgroups which literally takes days to complete.
    
    This adds a CAMEL_STORE_FOLDER_INFO_SUBSCRIBED flag to the request for
    a folder info tree while synchronizing + expunging.
    
    Note, CamelIMAPXStore will ignore the CAMEL_STORE_FOLDER_INFO_SUBSCRIBED
    flag if its "use-subscriptions" setting is FALSE, which is what we want.

 camel/camel-store.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-store.c b/camel/camel-store.c
index 31fe919..2051162 100644
--- a/camel/camel-store.c
+++ b/camel/camel-store.c
@@ -355,6 +355,7 @@ store_synchronize_sync (CamelStore *store,
 		root = camel_store_get_folder_info_sync (
 			store, NULL,
 			CAMEL_STORE_FOLDER_INFO_RECURSIVE |
+			CAMEL_STORE_FOLDER_INFO_SUBSCRIBED |
 			CAMEL_STORE_FOLDER_INFO_NO_VIRTUAL,
 			NULL, NULL);
 		fi = root;



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