On Montag, 22. Mai 2006 21:06 Kenneth Porter wrote:
> Does a uri rule count once per instance or for all matching uris? If,
> for instance, I have that rule and one matching *all* subdomains with
> a +1.2, does a spammer just have to insert a "good" uri to nullify
> the score for the bad one?

One rule hits once for an e-mail. So yes, +1.2 -1.2 would be zero.

> Alternatively, is there regex syntax to match all patterns *except*
> the one given? Can I somehow express "all geocities.com subdomains
> except www and uk" as a regex?

How about meta rules? This would give -1.2 for www|uk subdomains, and 
add 1.2 if there's a geocities subdomain that is not www|uk. It doesn't 
work in case there are both www|uk and another subdomain, though.

uri      ZMIgeocitiesGOOD m{(?:www|uk)\.geocities\.com}
describe ZMIgeocitiesGOOD probably good geocities site
score    ZMIgeocitiesGOOD -1.2

uri      __ZMIgeocitiesSUB m{\s+\.geocities\.com}
meta     ZMIgeocitiesBAD (! ZMIgeocitiesGOOD && __ZMIgeocitiesSUB)
score    ZMIgeocitiesBAD 1.2

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0660/4156531                          .network.your.ideas.
// PGP Key:   "lynx -source http://zmi.at/zmi3.asc | gpg --import"
// Fingerprint: 44A3 C1EC B71E C71A B4C2  9AA6 C818 847C 55CB A4EE
// Keyserver: www.keyserver.net                 Key-ID: 0x55CBA4EE

Attachment: pgpVuQT0ah6wI.pgp
Description: PGP signature

Reply via email to