Apple Mail - Report Spam

Summary: Forwards selected spam messages to spam@uce.gov.
Requires: Apple Mail
Install Location: ~/Library/Scripts/Applications/Mail/

Description

Choosing this script from the Scripts menu will report the selected spam messages to the FTC.

Download in Compiled Format · Download in Text Format

Script

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
            
set subject to theMessage's subject
            
make new to recipient with properties {address:"spam@uce.gov"}
        
end tell
        
send newMessage
    
end repeat
end tell

Last Modified: 2007-08-17