changeset 6514:b058f43c77e2 HEAD

Sync mailbox after committing transaction, so that the messages really get expunged.
author Timo Sirainen <tss@iki.fi>
date Sun, 30 Sep 2007 17:08:14 +0300
parents 0a157f89fb52
children 95eb92b49d9c
files src/pop3/commands.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 		}
 	}
 
-	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;