From: martin f. krafft Date: Thu, 8 Mar 2018 08:45:12 +0000 (+0400) Subject: trailing slash to maildir in case it's a symlink X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/ba0b3ce951fb0b9942149f0943e3f078853d2f18 trailing slash to maildir in case it's a symlink --- diff --git a/.mutt/list-mailboxes b/.mutt/list-mailboxes index 5e2460c..c65c47c 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)?)$' | \ sort | xargs echo mailboxes