]> Sergey Matveev's repositories - dotfiles.git/blob - bin/bin/inc
Mailbox new messages printer
[dotfiles.git] / bin / bin / inc
1 #!/usr/bin/env zsh
2
3 res=()
4 cd $MAILDIR
5 for mbox (*(/)) {
6     [[ -e $mbox/.inc ]] || continue
7     news=($mbox/new/*(N))
8     [[ ${#news} != 0 ]] && res=($res $mbox:${#news})
9 }
10 print $res