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:
@ -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):
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user