diff --git a/imapfilter/.imapfilter/config.lua b/imapfilter/.imapfilter/config.lua index f1664a0..0ebb5ed 100644 --- a/imapfilter/.imapfilter/config.lua +++ b/imapfilter/.imapfilter/config.lua @@ -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() diff --git a/mbsync/.mbsyncrc b/mbsync/.mbsyncrc index 77e7192..71c14c6 100644 --- a/mbsync/.mbsyncrc +++ b/mbsync/.mbsyncrc @@ -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 diff --git a/msmtp/.msmtprc b/msmtp/.msmtprc index 5ba80cc..9471726 100644 --- a/msmtp/.msmtprc +++ b/msmtp/.msmtprc @@ -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