mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 3d88b3e6384e8cb9bdece59e00651c83795e39c1
parent 1c3b2019bda2eca09e8791a2e579ac3f90f6c689
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Tue,  2 Aug 2016 17:17:17 +0200

mless: use magrep for next unseen

Diffstat:
mless | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/mless b/mless @@ -91,10 +91,11 @@ while :; do case "$?" in 0|1) exit $?;; 78) # N go to next unseen message - mseq -C "$(mseq -r .: | - awk -F':2,' '$1 !~ /^</ && $2 !~ /S/ { print; exit }')";; + nu=$(magrep -v -m1 :S .:) && mseq -C "$nu" + ;; 107) # k next thread - mseq -C "$(mseq .+1: | grep -m1 '^[^ <]')";; + mseq -C "$(mseq .+1: | grep -m1 '^[^ <]')" + ;; 100) # d mark read mflag -S . mseq -f : | mseq -S