From ba0b3ce951fb0b9942149f0943e3f078853d2f18 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 8 Mar 2018 12:45:12 +0400 Subject: [PATCH 1/1] trailing slash to maildir in case it's a symlink --- .mutt/list-mailboxes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5