From 4265c7f30e35836da8753c7230ff15d5c6b14ac6 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Tue, 11 Apr 2017 13:06:25 +0100 Subject: [PATCH] mbox_has_new --- mbox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mbox.c b/mbox.c index 2add832ef..f5ee2f633 100644 --- 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 -- 2.40.0