]> granicus.if.org Git - neomutt/commitdiff
mbox_check_stats: fix MailboxCount
authorMehdi Abaakouk <sileht@sileht.net>
Fri, 7 Dec 2018 20:15:07 +0000 (21:15 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 8 Dec 2018 12:13:22 +0000 (12:13 +0000)
The new mbox_check_stats work well, but MailboxCount was not correctly
updated.

This change fixes that.

mailbox.c

index 83dbe080a1bfef25004dbe44b329edaf4aa3f389..30ab7a78e3b396d5cfbf81d43287b4a4c79a342c 100644 (file)
--- 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 */