* Search down the list of mail folders for one containing new mail.
*
* Returns:
- * 1: Success
- * 0: Failure
+ * true: Success
+ * false: Failure
*/
static int select_next_new (void)
{
int entry = HilIndex;
if (!EntryCount || HilIndex < 0)
- return 0;
+ return false;
do
{
if (option (OPTSIDEBARNEXTNEWWRAP))
entry = 0;
else
- return 0;
+ return false;
}
if (entry == HilIndex)
- return 0;
+ return false;
} while (!Entries[entry]->buffy->new &&
!Entries[entry]->buffy->msg_unread);
HilIndex = entry;
- return 1;
+ return true;
}
/**