]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Message threading assert-crashfix.
authorTimo Sirainen <tss@iki.fi>
Sun, 17 May 2009 21:11:15 +0000 (17:11 -0400)
committerTimo Sirainen <tss@iki.fi>
Sun, 17 May 2009 21:11:15 +0000 (17:11 -0400)
--HG--
branch : HEAD

src/lib-storage/index/index-thread-links.c

index 380773fb3ef4d58dcf496fa25c2edbb6a1ce309f..d73d32e6527c79f294b95433f756359b60942a8e 100644 (file)
@@ -205,6 +205,9 @@ bool mail_thread_remove(struct mail_thread_cache *cache,
 
        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;
        }