2020-09-18 10:25:49 +00:00
|
|
|
function sendToFolder(folderFrom, folderTo, senders)
|
2020-09-17 17:49:53 +00:00
|
|
|
|
|
|
|
for _, sender in pairs(senders) do
|
2020-09-18 10:25:49 +00:00
|
|
|
messages = folderFrom:contain_from(sender)
|
2020-09-17 17:49:53 +00:00
|
|
|
messages:mark_seen()
|
2020-09-18 10:25:49 +00:00
|
|
|
messages:move_messages(folderTo)
|
2020-09-17 17:49:53 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
for _, acc in pairs(accounts) do
|
2020-09-18 10:25:49 +00:00
|
|
|
sendToFolder ( acc["Inbox"], acc["Dump"],
|
|
|
|
{
|
2020-09-17 17:49:53 +00:00
|
|
|
"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",
|
2020-09-18 10:25:49 +00:00
|
|
|
"no-reply@tumblr.com",
|
|
|
|
"contact@mailer.humblebundle.com",
|
|
|
|
"info@audible.de"
|
2020-09-17 17:49:53 +00:00
|
|
|
})
|
|
|
|
end
|