From 9ab4b45c155a49e2109a6dee3a315cce54d3bf16 Mon Sep 17 00:00:00 2001 From: 9 Date: Wed, 19 Sep 2001 10:01:32 +0000 Subject: Added missing header. 2001-09-19 * component-factory.c: Added missing header. * mail-local.c (mail_local_store_add_folder): Async load the folder we just added, so it can update the folder counts in the display. We just discard the folder afterwards? * mail-ops.c (mail_get_folder): Use the queued thread to get folders. svn path=/trunk/; revision=12976 --- mail/mail-local.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mail/mail-local.c') diff --git a/mail/mail-local.c b/mail/mail-local.c index 26ba476dd1..dcc6567638 100644 --- a/mail/mail-local.c +++ b/mail/mail-local.c @@ -55,6 +55,7 @@ #include "mail-mt.h" #include "mail-folder-cache.h" #include "mail-vfolder.h" +#include "mail-ops.h" #define d(x) @@ -826,7 +827,12 @@ static void mail_local_store_add_folder(MailLocalStore *mls, const char *uri, co d(printf("adding folder: '%s' path = '%s'\n", info->url, path)); + /* FIXME: should copy info, so we dont get a removed while we're using it? */ camel_object_trigger_event((CamelObject *)mls, "folder_created", info); + + /* this is just so the folder is opened at least once to setup the folder + counts etc in the display. Joy eh? The result is discarded. */ + mail_get_folder(uri, NULL, NULL); } struct _search_info { -- cgit v1.2.3