dovecot-2.0: Message threading assert-crashfix.

dovecot at dovecot.org dovecot at dovecot.org
Mon May 18 00:15:17 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/789136ae7e21
changeset: 9307:789136ae7e21
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 17 17:11:15 2009 -0400
description:
Message threading assert-crashfix.

diffstat:

1 file changed, 3 insertions(+)
src/lib-storage/index/index-thread-links.c |    3 +++

diffs (13 lines):

diff -r b5889a18fb25 -r 789136ae7e21 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 @@ bool mail_thread_remove(struct mail_thre
 
 	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;
 	}
 


More information about the dovecot-cvs mailing list