From: Timo Sirainen Date: Mon, 22 Sep 2008 20:46:07 +0000 (+0300) Subject: Transaction view: get_message_count() returned one too few when there were new messages. X-Git-Tag: 1.2.alpha2~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ceec000fb554d3b38715288039b16534d7e3d4b;p=thirdparty%2Fdovecot%2Fcore.git Transaction view: get_message_count() returned one too few when there were new messages. --HG-- branch : HEAD --- diff --git a/src/lib-index/mail-index-transaction-view.c b/src/lib-index/mail-index-transaction-view.c index d62597ec7e..05a62a18a3 100644 --- a/src/lib-index/mail-index-transaction-view.c +++ b/src/lib-index/mail-index-transaction-view.c @@ -40,7 +40,7 @@ static uint32_t tview_get_message_count(struct mail_index_view *view) 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 *