mutt-wizard/bin/getmuttpass

6 lines
208 B
Plaintext
Raw Normal View History

2018-02-10 07:47:29 +01:00
#!/bin/bash
2019-02-19 14:14:03 +01:00
GPG="gpg"; command -v gpg >/dev/null || GPG="gpg2"
2019-02-21 16:14:17 +01:00
pass=$(printf '%q' "$("$GPG" --decrypt --quiet ~/.local/share/muttwizard/$1.gpg)")
2019-02-19 14:14:03 +01:00
echo "set smtp_pass=\"$pass\""
echo "set imap_pass=\"$pass\""