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: c.ho on Feb 23, '06 10:15:35PM

tell application "Microsoft Entourage"
	-- get the currently selected message or messages
	set selectedMessages to current messages
	
	-- if there are no messages selected, warn the user and then quit
	if selectedMessages is {} then
		display dialog "Please select a message first and then run this script." with icon 1
		return
	end if
	
	repeat with theMessage in selectedMessages
		
		-- get the information from the message, and store it in variables
		set theSubject to subject of theMessage
		set theContent to source of theMessage
		
		-- create a new email with the information from the message
		set newMessage to make new outgoing message with properties {subject:theSubject, content:theContent, address:"spam@uce.gov"}
		
		send newMessage
		set read status of theMessage to read
	end repeat
end tell


[ Reply to This | # ]