tio-mblaze - iomenu - interactive terminal-based selection menu HTML git clone git://bitreich.org/iomenu git://hg6vgqziawt5s4dj.onion/iomenu DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- tio-mblaze (495B) --- 1 #!/bin/sh -e 2 # mail client using iomenu, mblaze, to be used with mfilter 3 4 cd "$HOME/mail" 5 6 if test "$1" = -a 7 then IFS=' ' read dir mail <<EOF 8 $(iomenu -'#' <index) 9 EOF 10 mseq -S <$dir/seq >/dev/null 11 exec mless "$(echo $mail | sed -r 's, *([0-9]+).*,\1,')" 12 fi 13 14 wc -l */seq | sed 's, 0, .,; s,/seq$,,' | 15 iomenu | sed -r 's,^ +[^ ]+ +,,' | 16 xargs printf %s/%s "$(pwd)" | mlist | msort -r -d | mseq -S 17 18 mscan -f '%6n %u %D %20f %t%2i%120S' | 19 iomenu | sed -r 's,^ *([0-9]*) .*,\1,' | 20 xargs mless