From ac4c52541598e602dc3de7b35ce2d301d9859faf Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 23 Feb 2018 14:43:26 +1000 Subject: [PATCH] still working on this --- src/mail_menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mail_menu.c b/src/mail_menu.c index aae289e..41a85a6 100644 --- a/src/mail_menu.c +++ b/src/mail_menu.c @@ -3152,7 +3152,7 @@ void do_mail_scan(struct user_record *user, int oldscan, int personal) { unread_count = 0; for (k=msghs->msg_count-1;k>=0;k--) { - if (msghs->msgs[k]->msg_no <= jlr.HighReadMsg) { + if (msghs->msgs[k]->msg_no < jlr.HighReadMsg) { break; } unread_count++; @@ -3207,7 +3207,7 @@ void do_mail_scan(struct user_record *user, int oldscan, int personal) { unread_count = 0; for (k=msghs->msg_count-1;k>=0;k--) { - if (msghs->msgs[k]->msg_no <= jlr.HighReadMsg) { + if (msghs->msgs[k]->msg_no < jlr.HighReadMsg) { break; } unread_count++;