aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c11
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);*/