aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-02 17:17:17 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-02 17:17:17 +0200
commit3d88b3e6384e8cb9bdece59e00651c83795e39c1 (patch)
tree5a89ede9c688d94dbe6746a75365cf2b15a480d0
parent1c3b2019bda2eca09e8791a2e579ac3f90f6c689 (diff)
downloadmblaze-3d88b3e6384e8cb9bdece59e00651c83795e39c1.tar.gz
mless: use magrep for next unseen
-rwxr-xr-xmless7
1 files changed, 4 insertions, 3 deletions
diff --git a/mless b/mless
index 8ad858e..890dd04 100755
--- 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