diff options
author | Dan Winship <danw@src.gnome.org> | 2001-01-11 01:10:44 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-01-11 01:10:44 +0800 |
commit | 54c085cc3cec41cc3d5a77efadb98450a7c5b4b6 (patch) | |
tree | d2a6bb21bfc182acdfb83535dd8b311abb5fb4ad /camel/camel-store.h | |
parent | 4d9047b9b04e1dc5fc74d8bcc2bd360948d6dd76 (diff) | |
download | gsoc2013-evolution-54c085cc3cec41cc3d5a77efadb98450a7c5b4b6.tar.gz gsoc2013-evolution-54c085cc3cec41cc3d5a77efadb98450a7c5b4b6.tar.zst gsoc2013-evolution-54c085cc3cec41cc3d5a77efadb98450a7c5b4b6.zip |
New class function, parallel to camel_folder_sync. (The default
* camel-store.c (camel_store_sync): New class function, parallel
to camel_folder_sync. (The default implementation just calls
camel_folder_sync on each cached folder.)
* providers/imap/camel-imap-store.c (get_folder_info): Call
camel_store_sync before doing anything else so that the IMAP
server and Camel are working from the same data. Don't ask the
server for the unread message count of the current folder, since
UW will return often-incorrect cached data, and we can calculate
it without talking to the server anyway.
svn path=/trunk/; revision=7365
Diffstat (limited to 'camel/camel-store.h')
-rw-r--r-- | camel/camel-store.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/camel/camel-store.h b/camel/camel-store.h index 4df8fa369f..1141f09dcf 100644 --- a/camel/camel-store.h +++ b/camel/camel-store.h @@ -85,6 +85,10 @@ typedef struct { const char *old_name, const char *new_name, CamelException *ex); + + void (*sync) (CamelStore *store, + CamelException *ex); + char * (*get_folder_name) (CamelStore *store, const char *folder_name, CamelException *ex); @@ -143,6 +147,9 @@ void camel_store_rename_folder (CamelStore *store, const char *new_name, CamelException *ex); +void camel_store_sync (CamelStore *store, + CamelException *ex); + CamelFolderInfo *camel_store_get_folder_info (CamelStore *store, const char *top, gboolean fast, |