minbox (141B)
1 #!/bin/sh 2 3 box=${1:-~/mail/Inbox} 4 n=${2:-21} 5 6 store=cat 7 [ -t 1 ] && store="mseq -S" 8 9 mlist "$box" | msort -M | tail -n "$n" | $store | mscan