on Wed, Aug 29, 2001 at 08:54:34PM -0700, Jason Majors (jason@whizzird.net) wrote:
> Is there a way to OR procmail conditions?
> I have lots of lines like so:
> :0
> * (^From:.*Reel\.com)
> /dev/null
> :0
> * (^From:.*sonypictures\.com)
> /dev/null
You want a list processor:
:0
* <test if sender in list>
/dev/null
There's the 'spamfilter' procmail recipies (spamfilter Debian package)
which does this automagickally. It uses a utility called 'chkmail' to
do the list magic, so it's not wholly portable. A quick Google check on
'procmail blacklist' turns up 'blcheck', a procmail helper utility:
http://www.samspade.org/w/blcheck/
Last updates are Nov, 1999.
If you don't mind a bit of shell overhead:
http://incolor.inebraska.com/jclark/
# do filtering against the blacklist
:0
* ? echo "$FROM" | egrep -i -f $BLACKLIST
$BLACK
You might also want to explore scoring. There's also an nteresting
logic trick which can be used to get 'OR' conditions out of procmail,
though the margin of this email is too small to contain the proof.
--
Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/
What part of "Gestalt" don't you understand? There is no K5 cabal
http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org
Free Dmitry! Boycott Adobe! Repeal the DMCA! http://www.freesklyarov.org
Geek for Hire http://kmself.home.netcom.com/resume.html
Attachment:
pgptmFYxOTHBI.pgp
Description: PGP signature