mail: Update mail-check to work with pass-coffin
Updated code to be able to run a password command chosen individually, as well as a post-password command. Used in this instance to `pass open` a password store in a coffin/tomb before actually trying to read passwords out of it.
This commit is contained in:
parent
572fa471ae
commit
ea95ca7dfa
2 changed files with 22 additions and 8 deletions
|
|
@ -3,8 +3,8 @@
|
|||
IMAPAccount gmail
|
||||
# Address to connect to
|
||||
Host imap.gmail.com
|
||||
UserCmd "gpg2 --decrypt --no-tty --quiet --no-verbose --for-your-eyes-only --pinentry-mode ask ~/.local/share/pass/misc/aerc-gmail-app-password.gpg | grep username | cut -d: -f2"
|
||||
PassCmd "gpg2 --decrypt --no-tty --quiet --no-verbose --for-your-eyes-only --pinentry-mode ask ~/.local/share/pass/misc/aerc-gmail-app-password.gpg | head -n1"
|
||||
UserCmd "pass show misc/aerc-gmail-app-password | grep username | cut -d: -f2"
|
||||
PassCmd "pass show misc/aerc-gmail-app-password | head -n1"
|
||||
# To store the password in an encrypted file use PassCmd instead of Pass
|
||||
# PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mailpass.gpg"
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue