X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/3811e4be579a17d24400251933aaec704059bf98..d435a3111f03e3c9b0ad7f307a3f09076f47c05e:/.mutt/list-mailboxes?ds=inline diff --git a/.mutt/list-mailboxes b/.mutt/list-mailboxes index 5e2460c..497a253 100755 --- a/.mutt/list-mailboxes +++ b/.mutt/list-mailboxes @@ -1,6 +1,6 @@ #!/bin/sh -find "$1" -type d -name cur -printf '%h\n' | \ +find "$1/" -type d -name cur -printf '%h\n' | \ sed -e "s,^$1/,=,g" -e "s,^$1\$,$2," | \ - egrep -v '^=(spool|discard|retrain(/(sp|h)am)?)$' | \ + egrep -v '^=(sp(ool|am)|discard|retrain(/(sp|h)am)?)$' | \ sort | xargs echo mailboxes