I'm looking for library that can parse email content into a json (or any structured data format). I know there are a number of services like mailgun providing this but I prefer to use my own email server and pass the email directly into my python script rather than having to expose another HTTP endpoint to receive json from service like mailgun. I have a number of side projects that accepting input through email and right now the processing is done in each project using the email module in standard lib. I plan to consolidate all the email processing into a single libraries so that each project only need to deal with json, instead of email format.
We just open sourced our small python script to parse incoming mail to JSON and do a POST callback to a remote URL.
More details here: https://github.com/Newsman/MailToJson
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With