dovecot-2.2: lib-storage: Fixed assert-crash with private indexe...

dovecot at dovecot.org dovecot at dovecot.org
Wed Nov 28 06:51:25 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/3c5f674285a8
changeset: 15427:3c5f674285a8
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 28 06:51:16 2012 +0200
description:
lib-storage: Fixed assert-crash with private indexes when looking for first unseen msg.

diffstat:

 src/lib-storage/index/index-status.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r fc890adce3d0 -r 3c5f674285a8 src/lib-storage/index/index-status.c
--- a/src/lib-storage/index/index-status.c	Wed Nov 28 06:43:55 2012 +0200
+++ b/src/lib-storage/index/index-status.c	Wed Nov 28 06:51:16 2012 +0200
@@ -85,6 +85,8 @@
 
 	pvt_count = mail_index_view_get_messages_count(box->view_pvt);
 	mail_index_lookup_first(box->view_pvt, 0, MAIL_SEEN, &pvt_seq);
+	if (pvt_seq == 0)
+		pvt_seq = pvt_count+1;
 	for (; pvt_seq <= pvt_count; pvt_seq++) {
 		pvt_rec = mail_index_lookup(box->view_pvt, pvt_seq);
 		if ((pvt_rec->flags & MAIL_SEEN) == 0 &&


More information about the dovecot-cvs mailing list