dovecot: Sync mailbox after committing transaction, so that the ...

dovecot at dovecot.org dovecot at dovecot.org
Sun Sep 30 17:08:17 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/b058f43c77e2
changeset: 6514:b058f43c77e2
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Sep 30 17:08:14 2007 +0300
description:
Sync mailbox after committing transaction, so that the messages really get
expunged.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/pop3/commands.c |    4 +++-

diffs (14 lines):

diff -r 0a157f89fb52 -r b058f43c77e2 src/pop3/commands.c
--- a/src/pop3/commands.c	Sun Sep 30 17:03:43 2007 +0300
+++ b/src/pop3/commands.c	Sun Sep 30 17:08:14 2007 +0300
@@ -231,7 +231,9 @@ static int cmd_quit(struct client *clien
 		}
 	}
 
-	if (mailbox_transaction_commit(&client->trans) < 0) {
+	if (mailbox_transaction_commit(&client->trans) < 0 ||
+	    mailbox_sync(client->mailbox, MAILBOX_SYNC_FLAG_FULL_WRITE,
+			 0, NULL) < 0) {
 		client_send_storage_error(client);
 		client_disconnect(client, "Storage error during logout.");
 		return 1;


More information about the dovecot-cvs mailing list