diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-09-18 07:26:36 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-09-18 07:26:36 +0800 |
commit | 0d9c13bb3755dcbe5165d014dacd734ddd3bbe8c (patch) | |
tree | 942b72aacd4421b96e50aef1b27dff2bed7da76a /mail/component-factory.c | |
parent | 0e432a12de0c6f6eda908e2628baf84eef575579 (diff) | |
download | gsoc2013-evolution-0d9c13bb3755dcbe5165d014dacd734ddd3bbe8c.tar.gz gsoc2013-evolution-0d9c13bb3755dcbe5165d014dacd734ddd3bbe8c.tar.zst gsoc2013-evolution-0d9c13bb3755dcbe5165d014dacd734ddd3bbe8c.zip |
Unsubscribe from the folder before deleting it.
2001-09-17 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (storage_remove_folder): Unsubscribe from
the folder before deleting it.
* mail-ops.c (remove_folder_get): If the store supports
subscriptions, make sure to unsubscribe from the folder before
deleting it.
svn path=/trunk/; revision=12921
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r-- | mail/component-factory.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c index 6a238ea2aa..0482b8ed0a 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -940,17 +940,18 @@ storage_remove_folder (EvolutionStorage *storage, camel_url_free (url); if (camel_exception_is_set (&ex)) goto exception; - + camel_store_delete_folder (store, fi->full_name, &ex); -#endif - camel_store_delete_folder (store, path+1, &ex); - if (camel_exception_is_set (&ex)) - goto exception; +#endif if (camel_store_supports_subscriptions (store)) /*camel_store_unsubscribe_folder (store, fi->full_name, NULL);*/ camel_store_unsubscribe_folder (store, path+1, NULL); + camel_store_delete_folder (store, path+1, &ex); + if (camel_exception_is_set (&ex)) + goto exception; + evolution_storage_removed_folder (storage, path); /*camel_store_free_folder_info (store, fi);*/ |