procmail
[Top] [All Lists]

Re: generic mail list recipe problem

2003-11-07 02:00:09
On 06 Nov 2003, at 13:42, Chuck Campbell wrote:
should it look like this?

No.

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

Common mistake (well, it was for me starting out). A procmail recipe can have exactly ONE action. Not two, not zero. The {} block is an action.

Is it more complicated? Yes, but thinking of it that way got me to stop making that mistake.

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

                :0:
                $LISTNAME
                }

is one way to do what you want.


--
BUGS: There is no conversion specification for the phase of the moon." strftime(3) man page


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