procmail
[Top] [All Lists]

Re: [pro] Using a variable in condition

2008-02-14 08:26:07
On Thu, 14 Feb 2008, [ISO-8859-1] Jens Müller wrote:
I'm trying to youse a pre-defined variable in the condition-line (this
is my test-example).

PMLIST="^(To|Cc)(_dot_)*procmail(_at_)lists\(_dot_)RWTH-Aachen\(_dot_)DE"
:0 #Jens
* $PMLIST
| $DELIVERMAIL -e -a jens -m user.jens.Listen.procmail

For some strange reason, on *my* variant of procmail (RH9) I have to
insert an escaping slash AFTER the dollar sign, but only in conditions!
Like this:

* $\PMLIST

Don't ask me why it insists on that syntax. (shrug)

- Charles

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>