wmbiff: Display "0" when there are no new emails

...instead of displaying the total number of emails in the mailbox.

On my gmail account with +16k emails, there was not enough space
to display the account label. Besides, the total number of emails
is useless information anyway.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
Carlos R. Mafra 2011-03-21 16:03:18 +01:00
parent 52e69bfa0f
commit 2773b5a718

View file

@ -727,7 +727,7 @@ static void blitMsgCounters(unsigned int i)
BlitString(mbox[i].TextStatus, 39, y_row, newmail); BlitString(mbox[i].TextStatus, 39, y_row, newmail);
} else { } else {
int mailcount = int mailcount =
(newmail) ? mbox[i].UnreadMsgs : mbox[i].TotalMsgs; (newmail) ? mbox[i].UnreadMsgs : 0;
BlitNum(mailcount, 45, y_row, newmail); BlitNum(mailcount, 45, y_row, newmail);
} }
} }