]> granicus.if.org Git - neomutt/commit
fix: mbox_check_stats() retvals
authorRichard Russon <rich@flatcap.org>
Wed, 11 Sep 2019 13:31:08 +0000 (14:31 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 1 Oct 2019 10:11:59 +0000 (11:11 +0100)
commitc11dbf982443513f1bc52e781532f88a7c4ca368
tree8e91eb4c858bc686ff84b92169aa39d30ec4ee75
parent3dc29b9e36fea84e11e38762b83675a5232b4cfd
fix: mbox_check_stats() retvals

Change mbox_check_stats() to clearly show when a Mailbox has new mail.
Return:
 * -1 Error
 *  0 Success, no new mail
 *  1 Success, some new mail

A bug was introduced when mbox_check_stats() was created that caused
'mbox' Mailboxes to always appear as if they had new mail.
imap/imap.c
maildir/maildir.c
maildir/mh.c
mbox/mbox.c
mutt_mailbox.c
mx.h
notmuch/mutt_notmuch.c