changeset 8213:ffefb9074966 HEAD

Transaction view: get_message_count() returned one too few when there were new messages.
author Timo Sirainen <tss@iki.fi>
date Mon, 22 Sep 2008 23:46:07 +0300
parents 909ed7cd98a5
children 76425554b4bc
files src/lib-index/mail-index-transaction-view.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 
 	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 *