So >> :0 C should be: >> :0 B: so it will search everything, case insensitive, and lock?
Thanks Joseph Carter ([EMAIL PROTECTED]) wrote: > >On Wed, Aug 20, 2003 at 03:10:46PM +0000, Bob Crandell wrote: >> My SPAM Assassin is catching most of the Viagra ads. Would this catch the last of >> it if I add: >> #Viagra, be gone. >> :0 C >> * Viagra >> /dev/null > >Others have noted the variations in spelling designed to thwart this kind >of thing, but the rule you actually want is: > >:0 B >* viagra >/dev/null > >B means search the whole body. C is not a valid flag, though c is. > >An inefficient demo of another flag (note the space after the \ below): > >:0 Dfw >* ^\>From\ >| sed -e 's/^>From /From /g' > >D means the * line is actually case sensitive. f means we're filtering >the message if we have a match, and w causes procmail to wait until the >filter is complete before doing more. Maildir users might use the above >to strip that annoying > prefix most mailers and MTAs put on From at the >beginning of a line to keep the message from breaking traditional UNIX >mbox format files. > > >Note that none of the rules in this message lock. When you write to >something that is not reentrant, always lock with a : at the end of the >first rule line. If the : is followed by more text, that text is the name >of the file that will be used as a lockfile. (Needed if you're delivering >to a pipe or something since procmail won't be able to guess the lockfile >name that it should use..) mbox needs locking. MH folders may or may not >need locking, I don't remember. Maildir does not need it and is NFS-safe >regardless of whether or not anything else is, including NFS itself. > >Procmail is one of those things that very quickly gets into deep voodoo, >but on the whole it's not too difficult once you understand the basics. > > players? >_______________________________________________ >EuG-LUG mailing list >[EMAIL PROTECTED] >http://mailman.efn.org/cgi-bin/listinfo/eug-lug > -- Bob Crandell Assured Computing When you need to be sure. [EMAIL PROTECTED] www.assuredcomp.com Voice - 541-689-9159 FAX - 541-463-1627 Eugene, Oregon _______________________________________________ EuG-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
