procmail
[Top] [All Lists]

Re: spam from zoo sex animal farm

2000-09-25 18:20:27
At 15:57 -0400 9/23/00, Mike O. wrote:

:0
* !^From:
* ^Subject:.*((hot|wild) and horny|sex with animals)
/dev/null

How is this ORing rather than ANDing?  Can you please explain this in plain
English (as you can tell, I'm pretty slow)?
btw, I went with the below easier to follow equivalent.

Not ORing, as David already pointed out. If you want to do ORing, you could use scoring, as such:

:0
* -5^0
* 10^0 !^From:
* 10^0 ^Subject:.*(hot|wild) and horny
* 10^0 ^Subject:.*sex with animals
* 10^0 ^Subject:.*some other text
/dev/null

With scoring, it delivers if the final score is greater than zero [1]. The first line sets it to -5, and each subsequent line adds ten to it if the condition is met. So if you got a message with no From: line, it'd get ten for that, then ten more if the subject contained "hot and horny" and so forth. As long as the result is greater than zero, it's a candidate for delivery.

You can use scoring in a whole bunch of really nifty ways. I use it for content filtering in the body -- any single keyword might not set off the alarm, but three or more (e.g.) would.

Scott

[1] It'd be best to read the procmailsc man page somewhat carefully before playing with this, and experimenting with some test messages before you start blocking mail with it.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>