Have your email program pipe the email to a PHP script (if you use cpanel it makes this very easy to do). Then use your PHP script to parse the email and reformat it however you see fit.
Edit
Now that we know you use cPanel here are some instructions:
1) On your cpanel main page click on the forwarders icon/link
2) Click on the "Add Forwarder" button
3) Under "Address" enter the email address that receives the emails you wish to process
4) Under "Destination" choose "Pipe to a Program:"
5) Enter the full path the the script that processes the email
6) Click on the "Add Forwarder" button to create the forwarder
This tutorial may be helpful in showing you how to process the email when it arrives at your script.