procmail
[Top] [All Lists]

Re: my recipe doesn't work.

1998-03-06 11:56:55
On Wed, 4 Mar 1998, Steve Woodard wrote:

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

As has been pointed out, the spaces are probably not what you want. 
Also, the various capitalizations are superfluous, as are the trailing
".*" strings; and I think "* *" should have been "* ^" 

Perhaps this will do?

:0
* ^From.*(\<sex\>|XXX)
* ^TOsex\>|XXX
/dev/null

Regards,
-- 
   Rick Troxel     Rick_Troxel(_at_)nih(_dot_)gov     
rick(_at_)helix(_dot_)nih(_dot_)gov
     http://www.dc-sage.org/bios/rick_troxel  301/435-2983
/////////////////////////////////////////////////////////////////
All effort and exertion put forth by man from the fullness of his
heart is worship, if it  is prompted  by the  highest motives and
the will to do service to humanity.                 --Abdu'l-Baha

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