imapfilter/mbsync/msmtp: Migrate from using gpg to password-store

This commit is contained in:
Sanchayan Maity 2022-12-15 11:56:28 +05:30
parent 33151066a1
commit 90fd2bb4d9
3 changed files with 8 additions and 8 deletions

View File

@ -129,7 +129,7 @@ function get_imap_password(file)
end
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')
pass = fd:read("*a")
fd:close()
@ -137,7 +137,7 @@ function get_pwd_fastmail()
end
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')
pass = fd:read("*a")
fd:close()

View File

@ -6,7 +6,7 @@ IMAPAccount fastmail
Host imap.fastmail.com
Port 993
User maitysanchayan@fastmail.com
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.fastmail.gpg"
PassCmd "pass show apppass/fastmail"
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt
@ -32,7 +32,7 @@ IMAPAccount asymptotic
Host imap.gmail.com
Port 993
User sanchayan@asymptotic.io
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.asymptotic.gpg"
PassCmd "pass show apppass/asymptotic"
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt
@ -52,7 +52,7 @@ Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail"
IMAPAccount gmail
Host imap.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
CertificateFile /etc/ssl/certs/ca-certificates.crt

View File

@ -11,19 +11,19 @@ account fastmail
host smtp.fastmail.com
from sanchayan@sanchayanmaity.net
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
host smtp.gmail.com
from 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
host smtp.gmail.com
from 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
account default : fastmail