]> granicus.if.org Git - neomutt/commitdiff
reset message counts
authorRichard Russon <rich@flatcap.org>
Tue, 27 Nov 2018 16:10:54 +0000 (16:10 +0000)
committerRichard Russon <rich@flatcap.org>
Thu, 29 Nov 2018 13:12:36 +0000 (13:12 +0000)
mx.c

diff --git a/mx.c b/mx.c
index 80531723e02855bf53befdf434f75b78f3e0cce0..2463feba9131527e1a047215e084a7f745b2b81e 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -296,6 +296,9 @@ struct Context *mx_mbox_open(struct Mailbox *m, const char *path, int flags)
   ctx->msgnotreadyet = -1;
   ctx->collapsed = false;
 
+  m->msg_unread = 0;
+  m->msg_flagged = 0;
+
   for (int i = 0; i < RIGHTSMAX; i++)
     mutt_bit_set(m->rights, i);