changeset 5264:169b5e67d307 HEAD

When parsing X-IMAP[base] header and its last-uid field is too low, mark it as needing rewrite.
author Timo Sirainen <tss@iki.fi>
date Sat, 10 Mar 2007 17:46:44 +0200
parents 8384f797c0fc
children d7bd3f80c6f2
files src/lib-storage/index/mbox/mbox-sync-parse.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync-parse.c	Sat Mar 10 16:14:47 2007 +0200
+++ b/src/lib-storage/index/mbox/mbox-sync-parse.c	Sat Mar 10 17:46:44 2007 +0200
@@ -230,6 +230,9 @@
 			/* new messages have been added since our last sync.
 			   just update our internal next_uid. */
 			ctx->sync_ctx->next_uid = uid_last+1;
+		} else {
+			/* we need to rewrite the next-uid */
+			ctx->need_rewrite = TRUE;
 		}
 		i_assert(ctx->sync_ctx->next_uid > ctx->sync_ctx->prev_msg_uid);
 	}