mutt-wizard

fork of Luke Smiths mutt-wizard
git clone git://git.jakekoroman.com/mutt-wizard
Log | Files | Refs | README | LICENSE

commit 8b30d99552fb97614a63895c385907e5dbbcb852
parent 5929cd30254b26ed886fab508904c48d1b687a1e
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun, 31 Mar 2019 15:33:45 -0400

get available accounts from muttrcs

Diffstat:
Mmw | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mw b/mw @@ -294,7 +294,7 @@ wipe () { \ } pick() { \ - numbered="$(grep "^accounts *=" "$HOME/.config/offlineimap/config" | sed 's/accounts *= *//g;s/,/ /g;s/ \+/\n/g' | nl)" + numbered="$(ls $accdir/*muttrc | sed "s/.*\///;s/\..*//" | nl)" [ "$(echo "$numbered" | wc -w)" = 0 ] && printf "No accounts to delete.\\n" && return 1 printf "Select an accounts to %s:\\n" "$1" echo "$numbered"