blob: 18387571be58beb0ef98e5a734c646ac98a66a67 [file] [log] [blame]
Fix hand while updating search folders
Gnome: http://bugzilla.gnome.org/show_bug.cgi?id=583507
Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=277864
diff -up a/camel/camel-vee-folder.c b/camel/camel-vee-folder.c
--- a/camel/camel-vee-folder.c 2009-06-26 08:36:57.000000000 -0400
+++ b/camel/camel-vee-folder.c 2009-07-14 14:10:51.000000000 -0400
@@ -1533,12 +1533,14 @@ folder_changed_change(CamelSession *sess
}
CAMEL_VEE_FOLDER_LOCK(vf, summary_lock);
- if (matches_changed || matches_added || changes->uid_removed->len||present)
- camel_db_begin_transaction (folder->parent_store->cdb_w, NULL);
if (folder_unmatched != NULL)
CAMEL_VEE_FOLDER_LOCK(folder_unmatched, summary_lock);
+ if (matches_changed || matches_added || changes->uid_removed->len||present)
+ camel_db_begin_transaction (folder->parent_store->cdb_w, NULL);
+
+
dd(printf("Vfolder '%s' subfolder changed '%s'\n", folder->full_name, sub->full_name));
dd(printf(" changed %u added %u removed %u\n", changes->uid_changed->len, changes->uid_added->len, changes->uid_removed->len));