from Hacker News

Ask HN: How to Automate Processing of Emails?

by chaoxu on 9/7/20, 12:39 AM with 2 comments

The simplest idea is: 1. Whenever I receive an email, some script should be ran. 2. The script takes the email as the input. It can do anything, for example parse the information and categorize it and store it somewhere else. 3. The script then move the email to different folders (for example: processed, error-occurred).

I'm using this to sort through hundreds of amazon shipping emails, and I know sometimes the processing of the email might fail, so I need to read a few manually.

Looking around I don't see any tools making this easy.

  • by neximo64 on 9/7/20, 12:46 AM

    You can use gmail + a forward to cloudmailin + trigger an aws lambda running a simple script.

    Alternatively you could have it direct to cloudmailin if your usage is a bit different.