get available accounts from muttrcs
This commit is contained in:
parent
5929cd3025
commit
8b30d99552
2
mw
2
mw
@ -294,7 +294,7 @@ wipe () { \
|
|||||||
}
|
}
|
||||||
|
|
||||||
pick() { \
|
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
|
[ "$(echo "$numbered" | wc -w)" = 0 ] && printf "No accounts to delete.\\n" && return 1
|
||||||
printf "Select an accounts to %s:\\n" "$1"
|
printf "Select an accounts to %s:\\n" "$1"
|
||||||
echo "$numbered"
|
echo "$numbered"
|
||||||
|
Loading…
Reference in New Issue
Block a user