Another fix

This commit is contained in:
Andrew Pamment 2016-08-12 14:00:45 +10:00
parent fe19686448
commit 963d696dfd

View File

@ -1913,9 +1913,11 @@ void mail_scan(struct user_record *user) {
if (conf.mail_conferences[i]->mail_areas[j]->type == TYPE_NETMAIL_AREA) {
msghs = read_message_headers(i, j, user);
if (msghs != NULL) {
if (msghs->msg_count > 0) {
if (msghs->msgs[msghs->msg_count-1]->msg_no > jlr.HighReadMsg) {
s_printf(" --> %d. %s (%d new)\r\n", j, conf.mail_conferences[i]->mail_areas[j]->name, msghs->msgs[msghs->msg_count-1]->msg_no - jlr.HighReadMsg);
}
}
free_message_headers(msghs);
}
} else {