Script to auto-reply to eBay sales?

I’d like to set up mail.app in OS X 10.3.1 to automatically reply to winning bidders of my eBay auctions. This would be easy except that the messages that eBay sends me only have address of the winning bidder in the body of the message, not the reply-to or cc field.

Can anyone show me an example of how to use Applescript to grab the bidder’s email address from the body of the message and send an email to that address? The text of the reply will be the same every time. Here’s sample portion of the body of the mail from eBay. Thanks in advance.

Congratulations! This item was purchased instantly using Buy It Now.

      Item name:          My item
      Item #:             9999999999
      Buy It Now price:   US $0.99
      Quantity:           1
      Subtotal:           US $0.99(Shipping and Handling not 

included)
Seller User ID: myid
Seller details: (Me - City, ST United States)
Seller E-mail: seller@null.fake
Buyer User ID: ebayuser
Buyer details: (D Bidder - City, ST United States)
Buyer E-mail: buyer@null.fake
Ship-to Zip Code*: 99999

The following code show you how to extract the email address you want from the sample text you provided. Of course, you’ll have to assign the text variable to the contents of the incoming message and then create a new message using that address but there are plenty of examples around for doing that:

Jon


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]