]> granicus.if.org Git - neomutt/commitdiff
mbox_has_new
authorRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 12:06:25 +0000 (13:06 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 23:29:59 +0000 (00:29 +0100)
mbox.c

diff --git a/mbox.c b/mbox.c
index 2add832ef5a4b437415039258143f04737f7e3b9..f5ee2f6339cc48bd05b737cf15c3c68047abcacc 100644 (file)
--- a/mbox.c
+++ b/mbox.c
@@ -966,14 +966,14 @@ static int mbox_check_mailbox (CONTEXT *ctx, int *index_hint)
  * Returns 1 if the mailbox has at least 1 new messages (not old)
  * otherwise returns 0.
  */
-static int mbox_has_new(CONTEXT *ctx)
+static bool mbox_has_new(CONTEXT *ctx)
 {
   int i;
 
   for (i = 0; i < ctx->msgcount; i++)
     if (!ctx->hdrs[i]->deleted && !ctx->hdrs[i]->read && !ctx->hdrs[i]->old)
-      return 1;
-  return 0;
+      return true;
+  return false;
 }
 
 /* if mailbox has at least 1 new message, sets mtime > atime of mailbox