aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index b8cd1309f7..371a12f626 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -1382,9 +1382,11 @@ remove_folder_get (struct _mail_msg *mm)
/* Delete every message in this folder, then expunge it */
uids = camel_folder_get_uids (folder);
+ camel_folder_freeze(folder);
for (i = 0; i < uids->len; i++)
camel_folder_delete_message (folder, uids->pdata[i]);
camel_folder_sync (folder, TRUE, NULL);
+ camel_folder_thaw(folder);
camel_folder_free_uids (folder, uids);
/* if the store supports subscriptions, unsubscribe from this folder... */