I do almost the same, but I send/forward emails from the employer windows outlook client to a gtd email address of mine. This address I poll with an always on mac mini that syncs OmniFocus via webdav to my iPhone/iPad/Mac. Using the OF mail functions the actions may be put in their proper contexts/projects automatically.
With your script added to my workflow I will be even more automated. Thanks for sharing!