AppleScript run by Mail rule not getting all info

Hi. This is my first post to the forum.

I am missing something. I have a script that runs when a rule is activated in OS 10.3 Inside the script I can retrieve all of the ‘properties’ of the ‘message’, but I can’t seem to get the receipients which is an ‘element’. Applescript is very new to me. This is what I have so far:

using terms from application "Mail"
	on perform mail action with messages theMessages for rule theRule
		tell application "Mail"	
			repeat with eachMessage in theMessages
				set theSubject to subject eachMessage
-- now what?

			end repeat
		end tell
	end perform mail action with messages
end using terms from

I think I would like to get a list of all the ‘to recipient’ and have it set to a string like mailed_to where each address is separate by something like**** which I can parse out later. I would want to do the same with ‘cc recipient’ and ‘bcc recipient’. I feel like I have come so close to finding the answer, but I just can’t get it.

Eventually, I will post the email to a database using a webservice - (actually, I have the webservice part running fine - I think.)

I just need to cast the recipients into a list. This seems to work if I just add this code to the middle of the loop.

set listofpeople to address of to recipient of eachMessage as list
				set hereisthepeople to ""
				repeat with eachAddress in listofpeople
					set hereisthepeople to hereisthepeople & "****" & eachAddress
				end repeat

Unfortunately, I found another problem which I will post as another thread. Thanks to all who looked.