Entourage - Whitelist Recipients

Summary: Adds the recipients of the current message to SpamSieve’s whitelist.
Requires: SpamSieve, Entourage
Install Location: ~/Documents/Microsoft User Data/Entourage Script Menu Items/
Last Modified: 2010-11-27

Description

Create an outgoing rule in Entourage that applies to all messages and runs this AppleScript. Then, whenever you send a message, SpamSieve will add its recipients to the whitelist.

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

Script

tell application "Microsoft Entourage"
    
set theAddresses to {}
    
set msgs to current messages
    
repeat with m in msgs
        
repeat with r in recipients of m
            
set a to address of r's address
            
copy a to end of theAddresses
        
end repeat
    
end repeat
    
    
tell application "SpamSieve"
        
tell whitelist
            
add sender rules for addresses theAddresses
        
end tell
    
end tell
end tell