]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Transaction view: get_message_count() returned one too few when there were new messages.
authorTimo Sirainen <tss@iki.fi>
Mon, 22 Sep 2008 20:46:07 +0000 (23:46 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 22 Sep 2008 20:46:07 +0000 (23:46 +0300)
--HG--
branch : HEAD

src/lib-index/mail-index-transaction-view.c

index d62597ec7e4eedf2fa7c4a164775dcd504dbffe7..05a62a18a399d348fa06f6bb12e971b727549205 100644 (file)
@@ -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 *