procmail
[Top] [All Lists]

Re: spam filtering for dummies

2000-02-05 18:02:44
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


On Sat, 05 Feb 2000 17:34:54   Stan Ryckman wrote:
At 03:32 AM 2/5/00 -0600, Janelle H wrote:

[snip]

What I currently have in my .procmailrc file is a whole bunch of recipes
that look pretty much like this:

:0
* ^From:(_dot_)*(_at_)mailexcite(_dot_)com
$HOME/mail/filtered

[snip]

:0:
* @mailexcite\.com
$HOME/mail/filtered

Note that the period matches any character (including a period) but to limit
it to exactly a period, escape it with a backslash as I did there.  Also
I deleted the ^.* that would have remained, because that would do nothing.

Finally, I added a ":" after your ":0" because you will want a lockfile
since you're delivering to a disk file.

Someone else posted a way to look in specific headers; note that
the one I gave above will match even the Subject: header.  It is possible
to bypass just that one if you think it might be worth the trouble
if, say, someone wrote you with:
   Subject: is xxxyyyzzz(_at_)mailexcite(_dot_)com a spammer?

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

will look in all headers that don't start with "Su" for example,
which probably will do in "real life."



MailCity. Secure Email Anywhere, Anytime!
http://www.mailcity.com

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