Hacker News new | ask | show | jobs
by beamatronic 2875 days ago
Is there a good existing framework that can turn emails into events? Some sort of IMAP client ?
2 comments

Sendgrid has an inbound parse feature (https://sendgrid.com/docs/User_Guide/Settings/parse.html) which you can use to start building a framework - it takes any inbound email to a domain and forwards it as an HTTP request to an endpoint you specify. Used it for a few projects and its worked great.
Name your language of choice and I’ll link you to a good one.
Java
JavaMail API ;)
Does that have the ability to call a specified callback function when an email arrives from a specified sender?
It’s a full framework for handling almost everything a MUA would do (imap/pop, email parsing, mime parsing, sending email, etc), so yeah, it can do that. You’ll have a bunch of boiler plate code you’ll need, but a Google search will give you plenty of samples.
Clojure