aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/local/camel-maildir-store.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-05-29 10:35:42 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-05-29 10:35:42 +0800
commitbb2af981843efad96dac9d48015e88fdd0a26085 (patch)
treea5980fd534f46d33c9d86f3c44864b98ad81d32f /camel/providers/local/camel-maildir-store.c
parent0c4f8063584fb5587df2d58411fbbdc581835ac7 (diff)
downloadgsoc2013-evolution-bb2af981843efad96dac9d48015e88fdd0a26085.tar
gsoc2013-evolution-bb2af981843efad96dac9d48015e88fdd0a26085.tar.gz
gsoc2013-evolution-bb2af981843efad96dac9d48015e88fdd0a26085.tar.bz2
gsoc2013-evolution-bb2af981843efad96dac9d48015e88fdd0a26085.tar.lz
gsoc2013-evolution-bb2af981843efad96dac9d48015e88fdd0a26085.tar.xz
gsoc2013-evolution-bb2af981843efad96dac9d48015e88fdd0a26085.tar.zst
gsoc2013-evolution-bb2af981843efad96dac9d48015e88fdd0a26085.zip
Implement. Run a summary check to update for any newly arrived messages.
2002-05-28 Not Zed <NotZed@Ximian.com> * providers/local/camel-maildir-folder.c (maildir_refresh_info): Implement. Run a summary check to update for any newly arrived messages. * providers/local/camel-maildir-store.c (scan_dir): If we have a folder, execute a refresh_info on it, to suck in any new stuff. svn path=/trunk/; revision=17029
Diffstat (limited to 'camel/providers/local/camel-maildir-store.c')
-rw-r--r--camel/providers/local/camel-maildir-store.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/camel/providers/local/camel-maildir-store.c b/camel/providers/local/camel-maildir-store.c
index ef152b132f..caae276e14 100644
--- a/camel/providers/local/camel-maildir-store.c
+++ b/camel/providers/local/camel-maildir-store.c
@@ -276,8 +276,11 @@ static int scan_dir(CamelStore *store, GHashTable *visited, char *root, const ch
CAMEL_STORE_LOCK(store, cache_lock);
folder = g_hash_table_lookup(store->folders, path);
- if (folder)
+ if (folder) {
+ if ((flags & CAMEL_STORE_FOLDER_INFO_FAST) == 0)
+ camel_folder_refresh_info(folder, NULL);
unread = camel_folder_get_unread_message_count(folder);
+ }
CAMEL_STORE_UNLOCK(store, cache_lock);
/* if we dont have a folder, then scan the directory and get the unread