Could someone please tell me why this script doesn’t actually forward the body of the message. It’s attached to a mail.app rule that says ‘if sender is in address book then run script’
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"
repeat with eachMessage in theMessages
say "Incoming mail is being processed."
set thesubject to subject of eachMessage
set theSender to sender of eachMessage
set bytes to message size of eachMessage
set thebody to content of eachMessage
set newMessage to make new outgoing message with properties {subject:thesubject & " From " & theSender, content:thebody, sender:"mailer@domain.com", visible:true}
tell newMessage
make new to recipient at end of to recipients with properties {name:"Filtering", address:"me@myphone.net"}
send
end tell
say "Message forwarded to your Blackberry. "
end repeat
end tell
end perform mail action with messages
end using terms from
Thanks!