wmbiff: Fix global notification

Global notification would only work if all 'notify' commands for all
mailboxes were unset (=='\0').

Fix that.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
Carlos R. Mafra 2011-03-21 16:43:13 +01:00
parent 66f11e0597
commit d76ad29da2

View file

@ -845,10 +845,10 @@ static int periodic_mail_check(void)
XUndefineCursor(display, iconwin);
if ((mailstat == 2) && (mbox[i].notify[0] == '\0')) {
/* for global notify */
/* Global notify */
if (mailstat == 2)
NewMail = 1;
}
displayMsgCounters(i, mailstat, &Blink_Mode);
/* update our idea of current time, as it
may have changed as we check. */