Re:Fennel – Lisp in Lua
by fit2rule on Sunday September 06, 2020 @02:50PM
(#24393663)
Your project sounds cool - is it possible to process email with Lua scripts, so that I could use a mailbox as a business process queue that is also user-friendly, while having a suite of Lua apps processing the mailboxes? If so, care to share details of your project if its open/available?
[ Parent
| on HN ]
It wouldn't be impossible to iterate over a series of mails, and get the message-bodies, but it would be a bit fiddly and annoying as the program was more designed as an email-client.
https://github.com/lumail/lumail/
Honestly I'd probably write something in perl/go/similar to just walk over a remote IMAP mailbox:
* Search for messages that are unread, or which don't have a given tag.
* Process each one.
* Mark as read, or add a tag.
(I actually did something like that recently for processing DMARC reports.)