imapfilter/mbsync/msmtp: Migrate from using gpg to password-store
This commit is contained in:
parent
33151066a1
commit
90fd2bb4d9
3 changed files with 8 additions and 8 deletions
|
@ -129,7 +129,7 @@ function get_imap_password(file)
|
||||||
end
|
end
|
||||||
|
|
||||||
function get_pwd_fastmail()
|
function get_pwd_fastmail()
|
||||||
local cmd = "gpg2 --use-agent --quiet --batch --decrypt ~/.fastmail.gpg"
|
local cmd = "pass show apppass/fastmail"
|
||||||
local fd = io.popen(cmd, 'r')
|
local fd = io.popen(cmd, 'r')
|
||||||
pass = fd:read("*a")
|
pass = fd:read("*a")
|
||||||
fd:close()
|
fd:close()
|
||||||
|
@ -137,7 +137,7 @@ function get_pwd_fastmail()
|
||||||
end
|
end
|
||||||
|
|
||||||
function get_pwd_sanchayan()
|
function get_pwd_sanchayan()
|
||||||
local cmd = "gpg2 --use-agent --quiet --batch --decrypt ~/.sanchayan.gpg"
|
local cmd = "pass show apppass/sanchayan"
|
||||||
local fd = io.popen(cmd, 'r')
|
local fd = io.popen(cmd, 'r')
|
||||||
pass = fd:read("*a")
|
pass = fd:read("*a")
|
||||||
fd:close()
|
fd:close()
|
||||||
|
|
|
@ -6,7 +6,7 @@ IMAPAccount fastmail
|
||||||
Host imap.fastmail.com
|
Host imap.fastmail.com
|
||||||
Port 993
|
Port 993
|
||||||
User maitysanchayan@fastmail.com
|
User maitysanchayan@fastmail.com
|
||||||
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.fastmail.gpg"
|
PassCmd "pass show apppass/fastmail"
|
||||||
SSLType IMAPS
|
SSLType IMAPS
|
||||||
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ IMAPAccount asymptotic
|
||||||
Host imap.gmail.com
|
Host imap.gmail.com
|
||||||
Port 993
|
Port 993
|
||||||
User sanchayan@asymptotic.io
|
User sanchayan@asymptotic.io
|
||||||
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.asymptotic.gpg"
|
PassCmd "pass show apppass/asymptotic"
|
||||||
SSLType IMAPS
|
SSLType IMAPS
|
||||||
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail"
|
||||||
IMAPAccount gmail
|
IMAPAccount gmail
|
||||||
Host imap.gmail.com
|
Host imap.gmail.com
|
||||||
User maitysanchayan@gmail.com
|
User maitysanchayan@gmail.com
|
||||||
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.sanchayan.gpg"
|
PassCmd "pass show apppass/sanchayan"
|
||||||
SSLType IMAPS
|
SSLType IMAPS
|
||||||
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
|
|
@ -11,19 +11,19 @@ account fastmail
|
||||||
host smtp.fastmail.com
|
host smtp.fastmail.com
|
||||||
from sanchayan@sanchayanmaity.net
|
from sanchayan@sanchayanmaity.net
|
||||||
user maitysanchayan@fastmail.com
|
user maitysanchayan@fastmail.com
|
||||||
passwordeval "gpg2 --use-agent --batch --quiet --no-greeting --no-tty --for-your-eyes-only --decrypt ~/.fastmail.gpg"
|
passwordeval "pass show apppass/fastmail"
|
||||||
|
|
||||||
account Sanchayan
|
account Sanchayan
|
||||||
host smtp.gmail.com
|
host smtp.gmail.com
|
||||||
from maitysanchayan@gmail.com
|
from maitysanchayan@gmail.com
|
||||||
user maitysanchayan@gmail.com
|
user maitysanchayan@gmail.com
|
||||||
passwordeval "gpg2 --use-agent --batch --quiet --no-greeting --no-tty --for-your-eyes-only --decrypt ~/.sanchayan.gpg"
|
passwordeval "pass show apppass/sanchayan"
|
||||||
|
|
||||||
account asymptotic
|
account asymptotic
|
||||||
host smtp.gmail.com
|
host smtp.gmail.com
|
||||||
from sanchayan@asymptotic.io
|
from sanchayan@asymptotic.io
|
||||||
user sanchayan@asymptotic.io
|
user sanchayan@asymptotic.io
|
||||||
passwordeval "gpg2 --use-agent --batch --quiet --no-greeting --no-tty --for-your-eyes-only --decrypt ~/.asymptotic.gpg"
|
passwordeval "pass show apppass/asymptotic"
|
||||||
|
|
||||||
# Set a default account
|
# Set a default account
|
||||||
account default : fastmail
|
account default : fastmail
|
||||||
|
|
Loading…
Reference in a new issue