procmail
[Top] [All Lists]

Re: still stuck

2003-01-01 06:27:00
Tom Allison <tallison(_at_)tacocat(_dot_)net> wrote:

However I'm unable to get the following to work correctly.
Any suggestions on the syntax?

GREP        = /bin/fgrep
FORMAIL     = /usr/bin/formail

The first thing I wonder is why you need, or believe you need,
to define the variables.  I like the philosophy of relying
on the compiled-in path for deciding where my executables
are.  fgrep and formail are standards, and if the ones
you want aren't executing in your rc when you simply give
the commands, then I'd say to recompile.


:0 c
* ? $FORMAIL -zx From: | $GREP -iqf $BLACKLIST

I don't know what problems you're experiencing, but
you probably have some quoting issues.  What are the
logs and symptoms for the problems you have had?

Here is what I use.  The weird quoting is necessary
for addresses with single-quotes or brackets in them,
among other things.


 :0 W  # 021223 () nix blacklisted mail
  * $  ? fgrep -qsix "'"$FROM"'" $ACKS/blacklist
  { RX = "${RX:+$RX, }UBE.BLACKLIST" }

-- 
dman


_______________________________________________
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>
  • Re: still stuck, dman <=