aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/vee
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-05-30 04:38:55 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-05-30 04:38:55 +0800
commit82d8404f4f1aa027f23a99f17ab231785f92ac79 (patch)
tree99c1be2f13bdc12b4fd76901bc2e91d3270e80a7 /camel/providers/vee
parent9b1893e93d0e828761bf7fc28df9831dddfe541d (diff)
downloadgsoc2013-evolution-82d8404f4f1aa027f23a99f17ab231785f92ac79.tar
gsoc2013-evolution-82d8404f4f1aa027f23a99f17ab231785f92ac79.tar.gz
gsoc2013-evolution-82d8404f4f1aa027f23a99f17ab231785f92ac79.tar.bz2
gsoc2013-evolution-82d8404f4f1aa027f23a99f17ab231785f92ac79.tar.lz
gsoc2013-evolution-82d8404f4f1aa027f23a99f17ab231785f92ac79.tar.xz
gsoc2013-evolution-82d8404f4f1aa027f23a99f17ab231785f92ac79.tar.zst
gsoc2013-evolution-82d8404f4f1aa027f23a99f17ab231785f92ac79.zip
Check the searched folder is open before trying to search it.
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. svn path=/trunk/; revision=3268
Diffstat (limited to 'camel/providers/vee')
-rw-r--r--camel/providers/vee/camel-vee-folder.c12
1 files changed, 12 insertions, 0 deletions
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);