40 lines
1,016 B
Lua
40 lines
1,016 B
Lua
|
function sendtoRollup(acc, senders)
|
||
|
|
||
|
for _, sender in pairs(senders) do
|
||
|
messages = acc["Inbox"]:contain_from(sender)
|
||
|
messages:mark_seen()
|
||
|
messages:move_messages(acc["Dump"])
|
||
|
|
||
|
-- for _, msg in ipairs(messages) do
|
||
|
-- mailbox, uid = table.unpack(msg)
|
||
|
-- local from = mailbox[uid]:fetch_field("From")
|
||
|
-- local subject = mailbox[uid]:fetch_field("Subject")
|
||
|
-- print(from .. "; " .. subject)
|
||
|
-- end
|
||
|
end
|
||
|
|
||
|
end
|
||
|
|
||
|
for _, acc in pairs(accounts) do
|
||
|
sendtoRollup ( acc, {
|
||
|
"news@todoist.com",
|
||
|
"server@email.woommart.com",
|
||
|
"noreply@medium.com",
|
||
|
"rollup@unroll.me",
|
||
|
"team@readdlenews.com",
|
||
|
"info@netdata.cloud",
|
||
|
"taco@trello.com",
|
||
|
"quincy@freecodecamp.org",
|
||
|
"support@instapaper.com",
|
||
|
"update@author.email.elsevier.com",
|
||
|
"newsletter@cloudflare.com",
|
||
|
"noreply@notify.docker.com",
|
||
|
"hello@skillshare.com",
|
||
|
"noreply@hostelworld.com",
|
||
|
"waitlist@isthereanydeal.com",
|
||
|
"info@mynameisgriz.com",
|
||
|
"news@postman.com",
|
||
|
|
||
|
})
|
||
|
end
|