From f24ee0c5c97a394027b636d639be56dec7a01fb6 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 6 Apr 2004 08:21:50 +0000 Subject: ** See bug #56464. 2004-04-06 Not Zed ** See bug #56464. * camel-folder.c (camel_folder_transfer_messages_to): do not lock the source here. (transfer_message_to): call the main entry point for get message and append message. ** See bug #56050. * camel-vee-store.c (vee_delete_folder): delete the state file if it exists. * camel-object.c (camel_object_state_write): create the parent dir if we need to. Also spit a warning if we fail in the end. * camel-vee-folder.c (camel_vee_folder_new): set the persistent state file location. (vee_sync): write the state file when we sync. svn path=/trunk/; revision=25331 --- camel/camel-vee-store.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'camel/camel-vee-store.c') diff --git a/camel/camel-vee-store.c b/camel/camel-vee-store.c index 6bfee52da1..c630eb6851 100644 --- a/camel/camel-vee-store.c +++ b/camel/camel-vee-store.c @@ -357,6 +357,15 @@ vee_delete_folder(CamelStore *store, const char *folder_name, CamelException *ex folder = camel_object_bag_get(store->folders, folder_name); if (folder) { + char *statefile; + + camel_object_get(folder, NULL, CAMEL_OBJECT_STATE_FILE, &statefile, NULL); + if (statefile) { + unlink(statefile); + camel_object_free(folder, CAMEL_OBJECT_STATE_FILE, statefile); + camel_object_set(folder, NULL, CAMEL_OBJECT_STATE_FILE, NULL, NULL); + } + if ((((CamelVeeFolder *)folder)->flags & CAMEL_STORE_FOLDER_PRIVATE) == 0) { /* what about now-empty parents? ignore? */ change_folder(store, folder_name, CHANGE_DELETE, -1); -- cgit