changeset 6326:3d7b93aef6b3 HEAD

Don't assert-crash if uidvalidity wasn't set in first sync.
author Timo Sirainen <tss@iki.fi>
date Mon, 27 Aug 2007 19:12:18 +0300
parents 3d48109409bf
children b8b02d155599
files src/lib-index/mail-index-sync-update.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-sync-update.c	Mon Aug 27 18:43:54 2007 +0300
+++ b/src/lib-index/mail-index-sync-update.c	Mon Aug 27 19:12:18 2007 +0300
@@ -794,7 +794,7 @@
 #ifdef DEBUG
 	mail_index_map_check(map);
 #endif
-	i_assert(map->hdr.indexid == index->indexid);
+	i_assert(map->hdr.indexid == index->indexid || map->hdr.indexid == 0);
 
 	/* transaction log tracks internally the current tail offset.
 	   besides using header updates, it also updates the offset to skip