mutt-wizard

Autoconfigure a terminal email setup with mutt and offline mail
Log | Files | Refs | README | LICENSE

commit 5c8d38f9075755f1f573739f7d6a8de8467f6198
parent a22d223d7988538560b1227747699d16ff7114b2
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Wed, 28 Oct 2020 11:49:18 -0400

Merge pull request #554 from inktrap/master

extend list to also work for symlinked accounts
Diffstat:
Mbin/mw | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/mw b/bin/mw @@ -29,7 +29,7 @@ do [ -f "$x" ] && sslcert="$x" && break done || { echo "CA Certificate not found. Please install one or link it to /etc/ssl/certs/ca-certificates.crt" && exit 1 ;} -getaccounts() { accounts="$(find "$accdir" -type f | grep -o "[0-9]-.*.muttrc" | sed "s/-/: /;s/\.muttrc$//" | sort -n)" ;} +getaccounts() { accounts="$(find -L "$accdir" -type f | grep -o "[0-9]-.*.muttrc" | sed "s/-/: /;s/\.muttrc$//" | sort -n)" ;} list() { getaccounts && [ -n "$accounts" ] && echo "$accounts" ;}