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

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


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

Modified Files:
      Tag: branch_1_0
	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.49.2.6
retrieving revision 1.49.2.7
diff -u -d -r1.49.2.6 -r1.49.2.7
--- mbox-sync-parse.c	10 Mar 2007 11:54:35 -0000	1.49.2.6
+++ mbox-sync-parse.c	10 Mar 2007 15:46:42 -0000	1.49.2.7
@@ -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