dovecot: CLOSE: Synchronize the mailbox after expunging messages...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Mar 3 02:36:07 EET 2008
details: http://hg.dovecot.org/dovecot/rev/efff12e19514
changeset: 7314:efff12e19514
user: Timo Sirainen <tss at iki.fi>
date: Mon Mar 03 02:36:02 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 2b8568b54384 -r efff12e19514 src/imap/cmd-close.c
--- a/src/imap/cmd-close.c Sun Mar 02 07:39:52 2008 +0200
+++ b/src/imap/cmd-close.c Mon Mar 03 02:36:02 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