procmail
[Top] [All Lists]

Re: my recipe doesn't work.

1998-03-04 10:01:48
On Wed, 4 Mar 1998, Steve Woodard wrote:

I thought this was working... A recipe from my .procmailrc file.

# trash anything coming from smut sites
:0
* ^From.*(sex | Sex | SEX | XXX | xxx).*
* *TO.*(sex | Sex | SEX).*
/dev/null

Remove the spaces in "( | | )":

~> echo "From: freestuff(_at_)dailysex(_dot_)com" |egrep 
'^From.*(sex|Sex|SEX|XXX|xxx).*'
From: freestuf(_at_)dailysex(_dot_)com
~> echo "From: freestuff(_at_)dailysex(_dot_)com" |egrep '^From.*( sex | Sex | 
SEX | XXX | xxx).*'
~>

HTH.

/Jonas, new to the list (since Sunday) but not to procmail.
--
( Who? Me?: Jonas Steverud                        !     Wei Wu Wei     )
( My $Home: http://www.dtek.chalmers.se/~d4jonas/ !  To Do Without Do  )

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