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

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 5 13:33:00 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/fe97a84145f9
changeset: 8225:fe97a84145f9
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 05 13:32:55 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 7ac86b33ad64 -r fe97a84145f9 src/lib-storage/index/mbox/mbox-sync.c
--- a/src/lib-storage/index/mbox/mbox-sync.c	Sun Oct 05 00:33:05 2008 +0300
+++ b/src/lib-storage/index/mbox/mbox-sync.c	Sun Oct 05 13:32:55 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