# HG changeset patch # User Timo Sirainen # Date 1242594675 14400 # Node ID 2d5f38d2af311db9a2cbe47917e144a735cb85a3 # Parent 6810af53ae30be5fccb4d03ff7d15811ca51156e Message threading assert-crashfix. diff -r 6810af53ae30 -r 2d5f38d2af31 src/lib-storage/index/index-thread-links.c --- 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; }