Marty Oehme
f2cb2f5be9
The other office tools use the pass command so we switch this one to use it to unify invocation.
16 lines
389 B
Lua
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
|