aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/providers/vee/camel-vee-folder.c12
2 files changed, 17 insertions, 0 deletions
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 <NotZed@HelixCode.com>
+
+ * 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 <danw@helixcode.com>
* 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);