[dovecot-cvs] dovecot/src/imap cmd-logout.c, 1.4, 1.5 cmd-select.c,
1.31, 1.32
cras at dovecot.org
cras at dovecot.org
Fri Sep 24 01:27:19 EEST 2004
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv20575
Modified Files:
cmd-logout.c cmd-select.c
Log Message:
Do full syncing at logout, not at select.
Index: cmd-logout.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-logout.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cmd-logout.c 27 Apr 2004 20:25:52 -0000 1.4
+++ cmd-logout.c 23 Sep 2004 22:27:16 -0000 1.5
@@ -11,6 +11,14 @@
/* this could be done at client_disconnect() as well,
but eg. mbox rewrite takes a while so the waiting is
better to happen before "OK" message. */
+ if (imap_sync_nonselected(client->mailbox,
+ MAILBOX_SYNC_FLAG_FULL) < 0) {
+ client_send_storage_error(client,
+ mailbox_get_storage(client->mailbox));
+ mailbox_close(client->mailbox);
+ return TRUE;
+ }
+
mailbox_close(client->mailbox);
client->mailbox = NULL;
}
Index: cmd-select.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-select.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- cmd-select.c 28 Aug 2004 16:39:53 -0000 1.31
+++ cmd-select.c 23 Sep 2004 22:27:16 -0000 1.32
@@ -35,7 +35,7 @@
return TRUE;
}
- if (imap_sync_nonselected(box, MAILBOX_SYNC_FLAG_FULL) < 0) {
+ if (imap_sync_nonselected(box, 0) < 0) {
client_send_storage_error(client, storage);
mailbox_close(box);
return TRUE;
More information about the dovecot-cvs
mailing list