I just started using this simple script from http://c-command.com/scripts/spamsieve/apple-mail-report-spam
to forward spam to spam@uce.gov. I’d like to modify it to be able to report spam to multiple recipients. I’ll probably have a few different scripts for different types of spam.
Tried working it through myself, but scripting skills are rusty:
tell application "Mail"
set theMessages to the selection
repeat with theMessage in theMessages
set newMessage to make new outgoing message at end of outgoing messages
tell newMessage
set content to (theMessage's source as Unicode text)
set subject to theMessage's subject
make new to recipient with properties {address:"spam@uce.gov"}
end tell
send newMessage
end repeat
end tell
Thank you.
AppleScript: 2.5.1
Browser: Firefox 31.0
Operating System: Mac OS X (10.8)