To be honest, there isn't going to be a script that does exactly that out there.
You also don't seem to understand what this involves either. On any system it isn't just a case of "a script", it's also a case of system configuration. On linux you must setup piping (which you need permission to do - not many sites offer this) and on windows you would need a customised mail server.
PHP is not a mail server. Sure, you could run a SMTP daemon but PHP isn't the best choice for this and even then if you have permission to run a daemon you're better off using piping or a customised smtp service. I am currently working on one myself but its not finished. It won't process mail but will upload it via a http post request to the script url of your choice. Your script can then process it and do whatever. It's not ready for use yet really but if you PM me a reminder in a month I could probably rush a very early version out the door for you to use. You'd need to be able to install it on a 24/7 windows machine though.
Sorry it's not better news,
My helpful sig has gone because a mod below the administrator gave me an infraction - despite the administrator personally agreeing to it.
If you need any php tips or tricks you can PM me.
Last edited by tangoforce; 02-13-2013 at 01:22 AM..