Yes, another fix for new mail scan

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

View File

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