Paul, you can try the following regular expression in spamLoverRe:
(?=.*?\b(good1|good2|good3)\b)(?!.*?(?:(\b(?:bad1|bad2|bad3|bad4)\b).*?(?!\g{-1})){digit
of bad count})
where good1, good2, good3 are the good words, which consider 'spamlover'
but only
if the bad words bad1, bad2, bad3, bad4 will not be found a 'digits of
bad count' times
for example:
If you want to consider a mail 'spamlover', if it contains any of the
words 'blue' or 'white' -
but not if it contains additional 'black' , 'yellow' , 'green' , 'red' (in
any combination) at least three times - than
(?=.*?\b(blue|white)\b)(?!.*?(?:(\b(?:black|yellow|green|red)\b).*?(?!\g{-1})){3})
should do it.
I think this methode is better than having a 'notSpamLoversRe', because a
matching entry in this 'notSpamLoversRe' will revert every matched
spamloverRe entry - not only one.
Thomas
Von: "Paul K. Dickson" <[email protected]>
An: ASSP development mailing list <[email protected]>
Datum: 24.05.2010 21:43
Betreff: [Assp-test] Way to ignore spamloverre via another regex?
I there a way to do that? For instance, I want 90% of mail to be spam
lover
that contains word N. However, there are a fair amount of mails that come
in that have word N in it that are also obviously spam by other vulgar
words
in them.
So I¹m in a bit of a catch 22 situation. Love all mail w/ word N in it no
matter how vulgar or spammy, resulting in 10% of it being nasty spam, or
remove word N from spamloverre and risk getting mail I want tagged but
passed completely blocked.
Is there a way to say ³use spamloverre EXCEPT if it contains X bad
word(s)²?
Paul K. Dickson
Systems Administrator
Interagency Information Technologies
Frederick County Government
Frederick, MD 21701
[email protected]
301-600-2399/x12399
------------------------------------------------------------------------------
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test
DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally
privileged and protected in law and are intended solely for the use of the
individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no
known virus in this email!
*******************************************************
------------------------------------------------------------------------------
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test