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

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 22 23:49:13 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/c88b67c8ebdb
changeset: 7893:c88b67c8ebdb
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 22 23:45:51 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 a1a14d67b15d -r c88b67c8ebdb src/lib-index/mail-index-transaction-view.c
--- a/src/lib-index/mail-index-transaction-view.c	Mon Sep 22 22:54:38 2008 +0300
+++ b/src/lib-index/mail-index-transaction-view.c	Mon Sep 22 23:45:51 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