[dovecot-cvs] dovecot/src/pop3 commands.c,1.28,1.29
cras at dovecot.org
cras at dovecot.org
Wed Oct 6 01:47:35 EEST 2004
Update of /var/lib/cvs/dovecot/src/pop3
In directory talvi:/tmp/cvs-serv9484
Modified Files:
commands.c
Log Message:
Make sure fetching is uninitialized always. Do full read/write syncing when
expunging.
Index: commands.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/commands.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- commands.c 3 Oct 2004 17:03:27 -0000 1.28
+++ commands.c 5 Oct 2004 22:47:32 -0000 1.29
@@ -209,11 +209,14 @@
}
}
- if (mailbox_search_deinit(ctx) < 0)
+ if (mailbox_search_deinit(ctx) < 0 || failed) {
+ mailbox_transaction_rollback(t);
return FALSE;
+ }
- mailbox_transaction_commit(t, 0);
- return !failed;
+ mailbox_transaction_commit(t, MAILBOX_SYNC_FLAG_FULL_READ |
+ MAILBOX_SYNC_FLAG_FULL_WRITE);
+ return TRUE;
}
static int cmd_quit(struct client *client, const char *args __attr_unused__)
@@ -310,6 +313,9 @@
}
if (o_stream_get_buffer_used_size(client->output) > 0) {
+ if (client->output->closed)
+ break;
+
/* continue later */
return;
}
More information about the dovecot-cvs
mailing list