procmail
[Top] [All Lists]

Re: blocking viagra in subject (was: Re: truncate)

2003-06-16 12:34:42
On Mon, Jun 16, 2003 at 01:10:33PM -0700, Glendon Gross wrote:
Does anyone have a generic recipe that will cause any e-mail with the word 
"viagra"
in the subject or the content to be redirected to /dev/null?

Correct way (really--you shouldn't post to this list again without
reading the manpages--unless you use a pseudonym, you'll get ignored):

    procmailrc(5), procmailex(5)

I'm-too-lazy-to-read way:

    :0
    * ^Subject:.*v(.)?[i1l](.)?a(.)?g(.)?r(.)?a
    /dev/null

This will catch the following variants:

    Subject: (anything) viagra
    Subject: (anything) v1agra
    Subject: (anything) vlagra
    Subject: (anything) v i a g r a
    Subject: (anything) v*i*a*g*r*a
    etc.

You understand, of course, that without prior processing of
whitelists, etc. that any legitimate discussion of the v-word in the
subject (including my reply to your message) would get blocked.

Scott
-- 
Scott Wiersdorf
scott(_at_)perlcode(_dot_)org

_______________________________________________
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>