only open the trash or junk if they're vfolders here. Some stores that

2004-08-25  Not Zed  <NotZed@Ximian.com>

        * mail-component.c (store_info_new): only open the trash or junk
        if they're vfolders here.  Some stores that implement their own
        trash folders are unacceptably slow to open otherwise.

svn path=/trunk/; revision=27027
This commit is contained in:
Not Zed
2004-08-26 04:13:43 +00:00
committed by Michael Zucci
parent 3418772c2c
commit 75cc9c38d4
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2004-08-25 Not Zed <NotZed@Ximian.com>
* mail-component.c (store_info_new): only open the trash or junk
if they're vfolders here. Some stores that implement their own
trash folders are unacceptably slow to open otherwise.
2004-08-25 Frederic Crozat <fcrozat@mandrakesoft.com>
* importers/evolution-mbox-importer.c: (load_file_fn):

View File

@ -149,8 +149,12 @@ store_info_new(CamelStore *store, const char *name)
si->name = g_strdup(name);
si->store = store;
camel_object_ref(store);
si->vtrash = camel_store_get_trash(store, NULL);
si->vjunk = camel_store_get_junk(store, NULL);
/* If these are vfolders then they need to be opened now,
* otherwise they wont keep track of all folders */
if ((store->flags & CAMEL_STORE_VTRASH) != 0)
si->vtrash = camel_store_get_trash(store, NULL);
if ((store->flags & CAMEL_STORE_VJUNK) != 0)
si->vjunk = camel_store_get_junk(store, NULL);
return si;
}