Emacs: Use password store for authentication.
parent
5307f003f3
commit
c3c61d45a4
|
@ -367,5 +367,6 @@
|
||||||
(setq ws-butler-keep-whitespace-before-point nil))
|
(setq ws-butler-keep-whitespace-before-point nil))
|
||||||
|
|
||||||
(setq auth-sources '("~/.authinfo.gpg" "~/.authinfo" "~/.netrc"))
|
(setq auth-sources '("~/.authinfo.gpg" "~/.authinfo" "~/.netrc"))
|
||||||
|
(add-to-list 'auth-sources 'password-store 'append)
|
||||||
|
|
||||||
(provide 'main)
|
(provide 'main)
|
||||||
|
|
|
@ -331,7 +331,7 @@ if [ -f ~/personal/history/eshell.gpg ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
section "Mail"
|
section "Mail"
|
||||||
lnn "$SOURCEDIR/mail/authinfo.gpg" "$HOME/.authinfo.gpg"
|
# lnn "$SOURCEDIR/mail/authinfo.gpg" "$HOME/.authinfo.gpg" ## Only if no using password-store.
|
||||||
mkdir -pv "$HOME/.cache/mail/"
|
mkdir -pv "$HOME/.cache/mail/"
|
||||||
while IFS= read -r i; do
|
while IFS= read -r i; do
|
||||||
## Warning: We need to eval here to expand the "~".
|
## Warning: We need to eval here to expand the "~".
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
IMAPAccount mail
|
IMAPAccount mail
|
||||||
Host mail.gandi.net
|
Host mail.gandi.net
|
||||||
User mail@ambrevar.xyz
|
User mail@ambrevar.xyz
|
||||||
PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.authinfo.gpg | awk '/login mail@ambrevar.xyz/ {print $(NF); exit}'"
|
PassCmd "pass mail@ambrevar.xyz@mail.gandi.net"
|
||||||
SSLType IMAPS
|
SSLType IMAPS
|
||||||
|
|
||||||
IMAPStore mail-remote
|
IMAPStore mail-remote
|
||||||
|
@ -35,7 +35,7 @@ SyncState *
|
||||||
IMAPAccount atlas
|
IMAPAccount atlas
|
||||||
Host mail.gandi.net
|
Host mail.gandi.net
|
||||||
User pierre@atlas.engineer
|
User pierre@atlas.engineer
|
||||||
PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.authinfo.gpg | awk '/login pierre@atlas.engineer/ {print $(NF); exit}'"
|
PassCmd "pass pierre@atlas.engineer@mail.gandi.net"
|
||||||
SSLType IMAPS
|
SSLType IMAPS
|
||||||
|
|
||||||
IMAPStore atlas-remote
|
IMAPStore atlas-remote
|
||||||
|
|
Loading…
Reference in New Issue