]> granicus.if.org Git - neomutt/commitdiff
fix mailbox size
authorRichard Russon <rich@flatcap.org>
Wed, 13 Feb 2019 13:51:18 +0000 (13:51 +0000)
committerRichard Russon <rich@flatcap.org>
Wed, 13 Feb 2019 13:51:19 +0000 (13:51 +0000)
When re-opening a mailbox, the size wasn't being reset.

mx.c

diff --git a/mx.c b/mx.c
index 9ce6f89e0872467b96ad6b2bac90b258ab3c7635..442c4832ea19f090365c3b57f8995e495d76396f 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -286,6 +286,7 @@ struct Context *mx_mbox_open(struct Mailbox *m, int flags)
   ctx->msgnotreadyet = -1;
   ctx->collapsed = false;
 
+  m->size = 0;
   m->msg_unread = 0;
   m->msg_flagged = 0;
   m->rights = MUTT_ACL_ALL;