changeset 7319:d76c54e092f5 HEAD

CLOSE: Synchronize the mailbox after expunging messages to actually get them expunged.
author Timo Sirainen <tss@iki.fi>
date Mon, 03 Mar 2008 02:35:59 +0200
parents be991f857c70
children fa8e8bcc85a5
files src/imap/cmd-close.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/cmd-close.c	Sun Mar 02 07:39:32 2008 +0200
+++ b/src/imap/cmd-close.c	Mon Mar 03 02:35:59 2008 +0200
@@ -18,6 +18,8 @@
 
 	if (!imap_expunge(mailbox, NULL))
 		client_send_untagged_storage_error(client, storage);
+	else if (mailbox_sync(mailbox, 0, 0, NULL) < 0)
+		client_send_untagged_storage_error(client, storage);
 
 	if (mailbox_close(&mailbox) < 0)
                 client_send_untagged_storage_error(client, storage);