procmail
[Top] [All Lists]

Re: Using a variable in condition

2008-02-14 08:38:05
* Jens Müller wrote:
PMLIST="^(To|Cc)(_dot_)*procmail(_at_)lists\(_dot_)RWTH-Aachen\(_dot_)DE"
:0 #Jens
* $PMLIST
| $DELIVERMAIL -e -a jens -m user.jens.Listen.procmail

Unless explicitly instructed otherwise, procmail reads conditions as
regular expressions, where "$" just means "end of line" and has
nothing to do with variables. Add another "$" at the start of the
condition line to change that:

  * $ $PMLIST

See man procmailrc about condition line modifiers:

  $  Evaluate the remainder of this condition according to sh(1)
     substitution rules inside double quotes, skip leading whitespace,
     then reparse it.

/HW

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