Entourage - Load Addresses

Summary: Loads the addresses in Entourage’s address book into SpamSieve.
Requires: SpamSieve, Entourage
Install Location: ~/Documents/Microsoft User Data/Entourage Script Menu Items/
Last Modified: 2019-10-02

Description

This script has the same effect as clicking the Load button in SpamSieve’s preferences window. Set up a recurring or shutdown schedule in Entourage that runs this script. Then SpamSieve will automatically stay in sync with changes to your Entourage address book.

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

Script

tell application "Microsoft Entourage"
    
with timeout of 60 * 60 seconds
        
set theAddresses to every email address of every contact
        
set theGroupAddresses to {}
        
repeat with theGroup in every group
            
repeat with theEntry in theGroup's group entries
                
copy address of content of theEntry to end of theGroupAddresses
            
end repeat
        
end repeat
        
copy theGroupAddresses to end of theAddresses
    
end timeout
end tell

tell application "SpamSieve"
    
add entourage addresses from list theAddresses
end tell