dovecot-2.1: imapc: If mailbox sync fails, don't mark index corr...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Sep 20 13:35:14 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/c9b758cd6c43
changeset: 13521:c9b758cd6c43
user: Timo Sirainen <tss at iki.fi>
date: Tue Sep 20 13:34:36 2011 +0300
description:
imapc: If mailbox sync fails, don't mark index corrupted.
The sync could have failed because of disconnection. The failure will just
cause the sync to be rollbacked and retried later. No need to delete the
whole index.
diffstat:
src/lib-storage/index/imapc/imapc-sync.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diffs (14 lines):
diff -r 5a27ac58db25 -r c9b758cd6c43 src/lib-storage/index/imapc/imapc-sync.c
--- a/src/lib-storage/index/imapc/imapc-sync.c Tue Sep 20 13:33:34 2011 +0300
+++ b/src/lib-storage/index/imapc/imapc-sync.c Tue Sep 20 13:34:36 2011 +0300
@@ -413,10 +413,6 @@
ret == 0)
ret = imapc_sync(mbox);
- if (changes && ret < 0) {
- /* we're now out of sync and can't safely continue */
- mail_index_mark_corrupted(mbox->box.index);
- }
return index_mailbox_sync_init(box, flags, ret < 0);
}
More information about the dovecot-cvs
mailing list