On Mon, 2004-03-08 at 21:37, Al Danks wrote:
> Does anyone have a rule along this line:
> 
> Many superlatives-est: best, greatest, quickest, biggest, largest, etc.
> 
> Many superlatives-er:super, bigger, larger, quicker, thinner, etc.
> 
> Many superlatives exceptional, quick, completely, totally, absolutely
> 
> I'm thinking of something along the lines of:
> 
> body MANY_SUPERLATIVES_EST \b[best|greatest|quickest]\b/i{5}
> 
> another for 6, 7, 8, 9, at least 10.
[...]

DISCLAIMER: This is only my second attempt at writing rules so you
should definitely test this first!

body __superlatives_est /\bbest|greatest|quickest|biggest|largest\b/
body __superlatives_er /\bsuper|bigger|larger|quicker|thinner\b/
body __superlatives /\bexceptional|quick|completely|totally|absolutely\b/
meta MANY_SUPERLATIVES_EST (( __superlatives_est + __superlatives_er + 
__superlatives) > 1)
score MANY_SUPERLATIVES_EST 0.1

This should trigger if 2 or more words from the different superlatives
are found in the message...

Again, I haven't tested this so make sure you run "spamassassin --lint"
after adding this to your user_prefs or a .cf file in
/etc/mail/spamassassin/ !

Please let me know how this worked out!

Bram
-- 
# Mertens Bram "M8ram"   <[EMAIL PROTECTED]>     Linux User #249103 #
# SuSE Linux 8.2 (i586) kernel 2.4.20-4GB      i686                256MB RAM #
#          9:57pm  up   5:04,  2 users,  load average: 0.03, 0.06, 0.02 #

Reply via email to