store_synchronize_sync(): Only sync subscribed folders.
authorMatthew Barnes <mbarnes@redhat.com>
Fri, 1 Feb 2013 12:45:56 +0000 (07:45 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Fri, 1 Feb 2013 15:37:48 +0000 (10:37 -0500)
commit48b9d17d16be9f0ecb6066036cc83d08b3cca817
tree2359264101748f50fe2e5d827b4fed20b4b11ed6
parentad1b7cd145c5fa5443556c17ba6e9d701c531bb7
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