changeset 8225:fe97a84145f9 HEAD

mbox: last-uid field wasn't being updated in X-IMAP[base]: header.
author Timo Sirainen <tss@iki.fi>
date Sun, 05 Oct 2008 13:32:55 +0300
parents 7ac86b33ad64
children 3e493fd3a9fa
files src/lib-storage/index/mbox/mbox-sync.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 	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) */