I will do what I can.
The key to all of it is the .forward file in the recepients home dir.
Pipeing the email into a script from within the .forward file is what is needed.
There are a few examples.
Let me know if you get stuck.
Here is a quick and easy guide.
http://www.activecampaign.com/help/forw ... pe-script/