dovecot-1.1: mbox: last-uid field wasn't being updated in X-IMAP...

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 5 13:32:05 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/a5bf7e12f3cc
changeset: 7901:a5bf7e12f3cc
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 05 13:32:00 2008 +0300
description:
mbox: last-uid field wasn't being updated in X-IMAP[base]: header.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/mbox/mbox-sync.c |    2 +-

diffs (12 lines):

diff -r 45336dc149b4 -r a5bf7e12f3cc src/lib-storage/index/mbox/mbox-sync.c
--- a/src/lib-storage/index/mbox/mbox-sync.c	Sun Oct 05 00:32:39 2008 +0300
+++ b/src/lib-storage/index/mbox/mbox-sync.c	Sun Oct 05 13:32:00 2008 +0300
@@ -1553,7 +1553,7 @@ static int mbox_sync_do(struct mbox_sync
 	index_sync_changes_reset(sync_ctx->sync_changes);
 
 	if (sync_ctx->base_uid_last != sync_ctx->next_uid-1 &&
-	    ret == 0 && !sync_ctx->delay_writes &&
+	    ret > 0 && !sync_ctx->delay_writes &&
 	    sync_ctx->base_uid_last_offset != 0) {
 		/* Rewrite uid_last in X-IMAPbase header if we've seen it
 		   (ie. the file isn't empty) */


More information about the dovecot-cvs mailing list