dotfiles/office/.config/imapfilter/accounts.lua
Marty Oehme f2cb2f5be9
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.
2023-02-25 17:12:27 +01:00

16 lines
389 B
Lua

local accounts = {}
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",
username = gmailuser,
password = gmailpass,
ssl = "auto"
}
return accounts