From 08ccc8d0e9e3e3644fc62a57bde5764adaab7427 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 12 Aug 2016 14:03:12 +1000 Subject: [PATCH] Yes, another fix for new mail scan --- mail_menu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mail_menu.c b/mail_menu.c index c547d62..17d36bc 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -1902,7 +1902,9 @@ 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) { - 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); } } else {