From 82d8404f4f1aa027f23a99f17ab231785f92ac79 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 29 May 2000 20:38:55 +0000 Subject: Check the searched folder is open before trying to search it. 2000-05-29 Not Zed * providers/vee/camel-vee-folder.c (vee_folder_build): Check the searched folder is open before trying to search it. svn path=/trunk/; revision=3268 --- camel/ChangeLog | 5 +++++ camel/providers/vee/camel-vee-folder.c | 12 ++++++++++++ 2 files changed, 17 insertions(+) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 7e8bd613c9..bfb9d1ba31 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2000-05-29 Not Zed + + * providers/vee/camel-vee-folder.c (vee_folder_build): Check the + searched folder is open before trying to search it. + 2000-05-29 Dan Winship * camel-service.c (camel_service_new): Fix up some glib diff --git a/camel/providers/vee/camel-vee-folder.c b/camel/providers/vee/camel-vee-folder.c index 25922ed13f..b2fcfda584 100644 --- a/camel/providers/vee/camel-vee-folder.c +++ b/camel/providers/vee/camel-vee-folder.c @@ -369,6 +369,8 @@ vee_folder_build(CamelVeeFolder *vf, CamelException *ex) } } + printf("building folder expression: %s\n", vf->expression); + messages = g_ptr_array_new(); messages_uid = g_hash_table_new(g_str_hash, g_str_equal); @@ -380,6 +382,14 @@ vee_folder_build(CamelVeeFolder *vf, CamelException *ex) const CamelMessageInfo *info; CamelFlag *flag; + printf("searching folder: (%s)%s\n", + gtk_type_name(((GtkObject *)f)->klass->type), + camel_folder_get_full_name(f)); + + /* ugh, make sure the folder is open? */ + if (!camel_folder_is_open(f)) + camel_folder_open (f, FOLDER_OPEN_RW, ex); + matches = camel_folder_search_by_expression(f, vf->expression, ex); match = matches; while (match) { @@ -410,6 +420,8 @@ vee_folder_build(CamelVeeFolder *vf, CamelException *ex) node = g_list_next(node); } + printf("search complete\n"); + g_ptr_array_free(vf->messages, TRUE); vf->messages = messages; g_hash_table_destroy(vf->messages_uid); -- cgit v1.2.3