Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to forward spam to the FTC via Mail' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to forward spam to the FTC via Mail
Authored by: Anonymous on Jul 31, '06 01:56:16PM
Here's my tweaked version. It adds a couple of features:
1. shows the message window of each message while it's been sent
2. tags "Fwd: " to the front of the subject
3. updates "was forwarded" and "junk mail" status
All it doesn't do is delete the messages and empty the trash. I figured it was best not to do those last two actions, just in case.


(* Cf. http://www.macosxhints.com/article.php?story=20060219014940761 *)
(* Richie Smit 31st July 2006 *)
set theSpamAuthority to "spam@uce.gov"
(* You might want to try KnujOn, www.knujon.com -- you need to be added to their whitelist first, so read their web pages *)

tell application "Mail"
set theMessages to the selection
repeat with thisMessage in theMessages
set newMessage to make new outgoing message at end of outgoing messages
tell newMessage
set visible to true (* comment out whole line to stop 'blinking' windows *)
set content to thisMessage's source
set subject to "Fwd: " & thisMessage's subject
make new to recipient with properties {address:theSpamAuthority}
end tell
send newMessage
set read status of thisMessage to true
set was forwarded of thisMessage to true
set junk mail status of thisMessage to true
end repeat
end tell

--
Rich

[ Reply to This | # ]