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