PowerMail - Uncertain Spam Condition

Summary: Can be used as a mail filter condition to match messages that are barely considered spam.
Requires: SpamSieve, PowerMail
Install Location: PowerMail Files/Custom Scripts

Description

Create a mail filter with an AppleScript condition that executes this script. The actions of the filter will be applied only if (a) the message is considered spam, and (b) its spam score is less than the uncertain threshold, which is set at the bottom of SpamSieve’s Notification preferences.

For example, you could set up three PowerMail filters like this:

Spam: evaluate
Evaluates the spam rating of the messages.
Spam: uncertain
Moves uncertain spam messages to the Uncertain Spam folder. Check “Don’t apply subsequent filters to this message” so that the next filter isn’t applied.
Spam: actions
Moves the more spammy spam messages to the Spam folder.

Download in Compiled Format | Download in Text Format

Script

tell application "PowerMail"
    
tell application "SpamSieve"
        
set uncertainThreshold to lookup keys {"Border"} default values {75}
    
end tell
    
set theMessages to current messages
    
repeat with msg in theMessages
        
set score to spam rating of msg
        
if score ≥ 50 and scoreuncertainThreshold then
            
set filter criterion result to true
        
end if
    
end repeat
end tell

Last Modified: 2007-08-17