Re this spam reporting script - Could it be edited to send two separate reports, one to the FTC and one to SpamCop? What would that look like? (I’m an AppleScript dunce). Thanks.
You could use something like this:
set _addresses to {"spam@uce.gov", "abuse@spamcop.net"}
tell application "Mail"
set _messages to the selection
repeat with _message in _messages
repeat with _address in _addresses
set _outgoingMessage to make new outgoing message at end of outgoing messages
tell _outgoingMessage
set content to _message's source as Unicode text
set subject to _message's subject
make new to recipient with properties {address:_address}
end tell
send _outgoingMessage
end repeat
end repeat
end tell
I’m not actually sure what the proper SpamCop address is. You’ll need to edit that.
Thanks Michael. That’s great. Cheers.
But then again …
Actually I just tried running that script with a handful of messages. What I got was a single new blank outgoing mail and this error message:
Error Number: -1700
Can’t make «class raso» of «class bcke» id 3 of application “Mail” into type Unicode text.
I’ve edited the script. Please try the new one.
Great. Seems to work now. Thanks heaps.