Prase email, add new iCal event

I want to be able to take a new email, check if the subject line is “photo request” then take the information in the body of the plain text email and paste it into the notes section of a new iCal event. How would applescript be used to do this?

Also, take the “Client” name and add it as the subject of the iCal event.

this is the email:


Rep: Craig

Publication: South

Issue Month: January

Client / Company: Get Hooked

Contact: George

Phone: 123

Address: Oxford Street

Category: Dinning

Image filed in folder: Get Hooked

Photo for: Editorial + Advertorial

Orientation: Landscape

Date Submitted: Thursday 1st of December 2005 @ 9:29 AM

Suggested Booking Date: 07/12/05

Suggested Booking Time: 10.30am