Is there a way to process email upon arrival. I've tried Mailbox Alert in Thunderbird, the add-in executes the script although as far as I know the message (the content of the email) is not given to the stdin
.
EDIT: since more info was wanted
I wrote a script, let's call it script.sh
that can be executed with /bin/bash
.
The script expects as input the content of the email (text or html), and processes it (for instance performing grep
on it and storing the results in another file).