Entourage 2008 : Filing Emails from sender's domain? is this possible

Hi all,

I run a script that archives all emails that are older than 4 weeks into an Archive Folder in “On My Computer” in Entourage.

I’m wondering is it possible to to the following via apple script for Entourage 2008:

In the Archive folder, within each email find the senders email address. Then create a sub-folder (if it doesn’t exist) with that senders domain as the name of the folder (eg if sender address was “person.abc@customer.com”, it could create a folder called “customer.com” or “customer_com”.

Then move that email into that folder.

if it can be done, this would save me a huge amount of time sorting old emails into subfolders for each customer.

many thanks in advance for anyone who can help.

Model: MacBook (2009)
AppleScript: 2.1.2
Browser: Safari 5
Operating System: Mac OS X (10.6)