]> Sergey Matveev's repositories - dotfiles.git/blob - bin/bin/inc
Gemini requires SNI
[dotfiles.git] / bin / 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