procmail
[Top] [All Lists]

Re: generic mail list recipe problem

2003-11-06 14:22:13
On Thu, 6 Nov 2003, Chuck Campbell wrote:

should it look like this?

                :0:
                * ! LISTNAME ?? ^^^^
                {
                  LOG="
                --->Listname-recipe : ($LISTNAME)
                "
                }
                $LISTNAME

Each recipe (introduced by ":0") must have exactly one action.  If that
action is a block in curly braces, that block contains nested _recipes_,
not nested actions.  Does that make sense?

So:

:0
* ! LISTNAME ?? ^^^^
{
  LOG="
--->Listname-recipe : ($LISTNAME)
"

  :0:
  $LISTNAME
}

An easier way might be to use the "A"nd flag like so:

:0
* ! LISTNAME ?? ^^^^
{
  LOG="
--->Listname-recipe : ($LISTNAME)
"
}

:0: A
$LISTNAME



_______________________________________________
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>