diff options
author | Not Zed <NotZed@Ximian.com> | 2004-04-06 16:21:50 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-04-06 16:21:50 +0800 |
commit | f24ee0c5c97a394027b636d639be56dec7a01fb6 (patch) | |
tree | 7527afe8a5733ef9ac56ff6db86e872c03479277 /camel/camel-vee-store.c | |
parent | 9279a2cf22757bba12c54598963099c638504c80 (diff) | |
download | gsoc2013-evolution-f24ee0c5c97a394027b636d639be56dec7a01fb6.tar.gz gsoc2013-evolution-f24ee0c5c97a394027b636d639be56dec7a01fb6.tar.zst gsoc2013-evolution-f24ee0c5c97a394027b636d639be56dec7a01fb6.zip |
** See bug #56464.
2004-04-06 Not Zed <NotZed@Ximian.com>
** 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
Diffstat (limited to 'camel/camel-vee-store.c')
-rw-r--r-- | camel/camel-vee-store.c | 9 |
1 files changed, 9 insertions, 0 deletions
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); |