|
|
An AppleScript to forward spam to the FTC via Mail
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 |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|