procmail
[Top] [All Lists]

Re: spam filtering for dummies

2000-02-05 20:55:32
On Sat, 5 Feb 2000, Janelle H wrote:

Thank you very much for your help Stan!  I think this might work!  Does it 
search the entire email or just the header?  Also, what is the most efficient 
way to search several addresses?
Does this following recipe do that or not?

:0:
* ^([^S]|S[^u])(_dot_)*(_at_)mailexcite\(_dot_)com
* ^([^S]|S[^u])(_dot_)*(_at_)mailandnews\(_dot_)com
* ^([^S]|S[^u])(_dot_)*(_at_)bigfoot\(_dot_)com
* ^([^S]|S[^u])(_dot_)*(_at_)bart\(_dot_)nl
$HOME/mail/filtered

I doubt that will ever match something.  You are requiring that all of
those be in the headers of one message for it to be caught.  You want
to OR the testing.  Try this instead:

:0:
* ^([^S]|S[^u]).*@(bart\.nl|bigfoot\.com|mailandnews\.com|mailexcite\.com)
$HOME/mail/filtered

-- 
If all else fails, immortality can always be assured by spectacular
error.
                -- John Kenneth Galbraith

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