Got it working:Run this mysql command: (your prefix may vary)ALTER TABLE ost_filter ADD custom_script VARCHAR(255);Use this patch (from 1.8 dev-next, so might need some work for default 1.8)https://gist.github.com/clonemeagain/8625660Includes an example php script which demonstrates the available entries for the Ticket array etc. Save it into a new folder in include/customAdmin interface simply globs this folder for scripts.Could probably be improved a lot, testing I forgot my Rule wasn't going to fire for every email, so I had to import a message ending in .com, which I thought would have been most of them ;-) So, you can fire the script for a Matching Rule. Awesome. Knocked it out in about two hours, spend most of that time testing and trying to get git to produce a working patch. Gah, I don't know why I find git so hard to understand.