Entourage - Remove Spam From Server

Summary: Removes the messages in the Spam folder from the mail server.
Requires: SpamSieve, Entourage
Install Location: ~/Documents/Microsoft User Data/Entourage Script Menu Items/
Last Modified: 2010-11-27

Description

After running the script, the next time Entourage connects to the mail server, it will delete the spam messages that have already been downloaded, so that they no longer clutter your mailbox.

If you’re using a different name for your spam folder, you’ll need to change "Junk E-mail" to the name of your spam folder.

Installation Instructions · Download in Compiled Format · Download in Text Format

Script

tell application "Microsoft Entourage"
    
repeat with m in messages of folder "Junk E-mail"
        
set m's connection action to remove at next connection
    
end repeat
end tell