aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
author3 <NotZed@Ximian.com>2001-10-04 02:48:47 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-04 02:48:47 +0800
commitcb9d644a2ee55614b35dfdec6a7731db4ed1e35c (patch)
treed1295be217eec4ccb631c1d28e9b68d7f034f6a9 /mail/mail-ops.c
parent636b05ecb88932f28ef2d1829da2b40ebcfb6253 (diff)
downloadgsoc2013-evolution-cb9d644a2ee55614b35dfdec6a7731db4ed1e35c.tar
gsoc2013-evolution-cb9d644a2ee55614b35dfdec6a7731db4ed1e35c.tar.gz
gsoc2013-evolution-cb9d644a2ee55614b35dfdec6a7731db4ed1e35c.tar.bz2
gsoc2013-evolution-cb9d644a2ee55614b35dfdec6a7731db4ed1e35c.tar.lz
gsoc2013-evolution-cb9d644a2ee55614b35dfdec6a7731db4ed1e35c.tar.xz
gsoc2013-evolution-cb9d644a2ee55614b35dfdec6a7731db4ed1e35c.tar.zst
gsoc2013-evolution-cb9d644a2ee55614b35dfdec6a7731db4ed1e35c.zip
Dont wait for event to finish before returning. This could however mean we
2001-10-03 <NotZed@Ximian.com> * mail-folder-cache.c (folder_changed): Dont wait for event to finish before returning. This could however mean we process it after things have vanished below us? Fixes another case of ctrl-d deadlock. * mail-ops.c (remove_folder_get): Freeze/thaw around deleting all messages in folder. svn path=/trunk/; revision=13382
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... */