changeset 9036:2d5f38d2af31 HEAD

Message threading assert-crashfix.
author Timo Sirainen <tss@iki.fi>
date Sun, 17 May 2009 17:11:15 -0400
parents 6810af53ae30
children 387f84b2768e
files src/lib-storage/index/index-thread-links.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/index-thread-links.c	Sun May 17 15:43:50 2009 -0400
+++ b/src/lib-storage/index/index-thread-links.c	Sun May 17 17:11:15 2009 -0400
@@ -205,6 +205,9 @@
 
 	if (msgid_map->uid > cache->last_uid) {
 		/* this message was never added to the cache, skip */
+		while (msgid_map[count].uid == msgid_map->uid)
+			count++;
+		*msgid_map_idx += count;
 		return TRUE;
 	}