From 6cd98e97a9a686af128d602e67c0a736bc875579 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Fri, 4 Dec 2009 18:26:56 +0330 Subject: [PATCH] mailx: let ',' move to new unread messages only --- mailx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mailx.c b/mailx.c index 1100410..f081a84 100644 --- a/mailx.c +++ b/mailx.c @@ -72,7 +72,8 @@ static int msg_num(char *num) if (!strcmp(",", num)) { int i = cur; while (++i < sort->n) { - if (!(sort->mails[i]->stat & STAT_READ)) { + int stat = sort->mails[i]->stat; + if (!(stat & STAT_READ) && (stat & STAT_NEW)) { n = i; break; } -- 2.11.4.GIT