dovecot-1.2: Transaction view: get_message_count() returned one ...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 22 23:50:42 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/ffefb9074966
changeset: 8213:ffefb9074966
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 22 23:46:07 2008 +0300
description:
Transaction view: get_message_count() returned one too few when there were new messages.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-index/mail-index-transaction-view.c |    2 +-

diffs (12 lines):

diff -r 909ed7cd98a5 -r ffefb9074966 src/lib-index/mail-index-transaction-view.c
--- a/src/lib-index/mail-index-transaction-view.c	Mon Sep 22 22:31:33 2008 +0300
+++ b/src/lib-index/mail-index-transaction-view.c	Mon Sep 22 23:46:07 2008 +0300
@@ -40,7 +40,7 @@ static uint32_t tview_get_message_count(
 
 	return view->map->hdr.messages_count +
 		(tview->t->last_new_seq == 0 ? 0 :
-		 tview->t->last_new_seq - tview->t->first_new_seq);
+		 tview->t->last_new_seq - tview->t->first_new_seq + 1);
 }
 
 static const struct mail_index_header *


More information about the dovecot-cvs mailing list