dovecot-1.1: CLOSE: Synchronize the mailbox after expunging mess...

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 3 02:36:03 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/d76c54e092f5
changeset: 7319:d76c54e092f5
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 03 02:35:59 2008 +0200
description:
CLOSE: Synchronize the mailbox after expunging messages to actually get them
expunged.

diffstat:

1 file changed, 2 insertions(+)
src/imap/cmd-close.c |    2 ++

diffs (12 lines):

diff -r be991f857c70 -r d76c54e092f5 src/imap/cmd-close.c
--- 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 @@ bool cmd_close(struct client_command_con
 
 	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);


More information about the dovecot-cvs mailing list