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.