I'm playing with a rule to slightly downscore mail from two-character
domains (i.e. country TLDs).  Setting aside the question of whether
such a rule could possibly help (I certainly don't recommend it
generally; I do think it may fit my situation)...I can't get it to
work.

I've written several other rules that *are* working, so I've gotten
past the very most basic problems.  

I'm doing it with a pair of rules, one which recognizes all from
addresses ending in a two-chracter TLD, another recognizing the
specific ones I want to not downscore and putting in a compensating
value. Here they are:

# Down-score foreign sources
header DDB_FOREIGN_FROM         From =~ /\.[a-z]{2}[, ]/i
describe DDB_FOREIGN_FROM       From includes two-char TLD
score DDB_FOREIGN_FROM 0.1

# Up-score okay English TLDs
header DDB_FOREIGN_FROM_GOOD    From =~ /\.(us|ca|uk|au|nz)[, ]/i
describe DDB_FOREIGN_FROM_GOOD  From includes us, ca, uk, au, nz TLD
score DDB_FOREIGN_FROM_GOOD -0.1

However, they *never* trigger.  

(Yes, I do see that the dot-twochars-comma-or-space sequence could hit
in comments on the from line, but from the examples I've seen it
doesn't look likely).

Any ideas?
-- 
David Dyer-Bennet, <[EMAIL PROTECTED]>, <www.dd-b.net/dd-b/>
RKBA: <noguns-nomoney.com> <www.dd-b.net/carry/>
Photos: <dd-b.lighthunters.net>  Snapshots: <www.dd-b.net/dd-b/SnapshotAlbum/>
Dragaera mailing lists: <dragaera.info/>


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to