Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2661:0d585c330c18 HEAD
Do full syncing at logout, not at select.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 24 Sep 2004 01:27:16 +0300 |
parents | b1f91349d216 |
children | add94f9aa9e1 |
files | src/imap/cmd-logout.c src/imap/cmd-select.c |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/cmd-logout.c Thu Sep 23 23:26:59 2004 +0300 +++ b/src/imap/cmd-logout.c Fri Sep 24 01:27:16 2004 +0300 @@ -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; }
--- a/src/imap/cmd-select.c Thu Sep 23 23:26:59 2004 +0300 +++ b/src/imap/cmd-select.c Fri Sep 24 01:27:16 2004 +0300 @@ -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;