From: Mehdi Abaakouk Date: Fri, 7 Dec 2018 20:15:07 +0000 (+0100) Subject: mbox_check_stats: fix MailboxCount X-Git-Tag: 2019-10-25~457 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74c46c9f53f4c393dd13895518d21bf00933339e;p=neomutt mbox_check_stats: fix MailboxCount The new mbox_check_stats work well, but MailboxCount was not correctly updated. This change fixes that. --- diff --git a/mailbox.c b/mailbox.c index 83dbe080a..30ab7a78e 100644 --- a/mailbox.c +++ b/mailbox.c @@ -177,7 +177,7 @@ static void mailbox_check(struct Mailbox *m, struct stat *ctx_sb, bool check_sta case MUTT_MAILDIR: case MUTT_MH: case MUTT_NOTMUCH: - if (mx_mbox_check_stats(m, 0)) + if (mx_mbox_check_stats(m, 0) == 0) MailboxCount++; break; default:; /* do nothing */