imapfilter: Switch to use pass command

The other office tools use the pass command so we switch this one to use
it to unify invocation.
This commit is contained in:
Marty Oehme 2023-02-25 17:12:27 +01:00
parent 5d2542db51
commit f2cb2f5be9
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 7 additions and 7 deletions

View file

@ -1,9 +1,9 @@
local accounts = {}
local status, gmailuser = pipe_from(
'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')
local status, gmailpass = pipe_from(
'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')
local _, gmailuser = pipe_from(
'pass show misc/gmail-app-password | grep username | cut -d: -f2')
local _, gmailpass = pipe_from(
'pass show misc/gmail-app-password | head -n1')
-- Setup an imap account called gmail
accounts.gmail = IMAP {
server = "imap.gmail.com",

View file

@ -30,8 +30,8 @@ function getSenderList(rollupfile)
for line in file:lines() do table.insert(rollupSenders, line) end
else
print(
"ERROR: rollup did not find rollup.txt file containing mail addresses at " ..
rollupfile or "")
"rollup did not find rollup.txt file containing mail addresses at " ..
rollupfile or ". Skipping.")
end
return rollupSenders
end