[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync-parse.c, 1.58, 1.59

tss at dovecot.org tss at dovecot.org
Sat Mar 10 17:46:48 EET 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv4000

Modified Files:
	mbox-sync-parse.c 
Log Message:
When parsing X-IMAP[base] header and its last-uid field is too low, mark it
as needing rewrite.



Index: mbox-sync-parse.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync-parse.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- mbox-sync-parse.c	10 Mar 2007 11:54:39 -0000	1.58
+++ mbox-sync-parse.c	10 Mar 2007 15:46:44 -0000	1.59
@@ -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);
 	}



More information about the dovecot-cvs mailing list