aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-folder-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-folder-cache.c')
-rw-r--r--mail/mail-folder-cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c
index cbdfacf3d6..c22d3011b0 100644
--- a/mail/mail-folder-cache.c
+++ b/mail/mail-folder-cache.c
@@ -253,7 +253,8 @@ real_flush_updates(void *o, void *event_data, void *data)
evolution_storage_new_folder(storage,
up->path, up->name, type, up->uri, up->name, NULL,
up->unread,
- TRUE, 0);
+ CAMEL_IS_DISCO_STORE(up->store)
+ && camel_disco_store_can_work_offline((CamelDiscoStore *)up->store), 0);
}
if (!up->olduri && up->add)