What's the best option to trigger a script every time I receive a new email? I'm using pine on linux. I want to feed the email to my script and do some processing. I don't have root rights on the server.
If it's local (as Doug asked) you can try a .forward file.
Most Mail Delivery Agents look for $HOME/.forward files. If
Oddly, a quick google search didn't find any comprehensive tutorials for .forward files. The best I could find for it is this kind of complicated tutorial which has a lot of details about procmail which you probably can ignore.