procmail
[Top] [All Lists]

Re: Variables in conditions

2002-05-29 21:39:21
In an older episode (29.05.2002, 21:10:15), David W. Tamkin
<dattier(_at_)ripco(_dot_)com> wrote:

If you want variable expansion on a regexp condition, you need to put an
addition $ in front of it,
like this:

 * $ TO$MYVAR

As Andrew Edelstein has pointed out, you probably meant

 * $ ^TO$MYVAR
or
 * $ ^TO_$MYVAR

in order to use procmail's built-in ^TO or ^TO_ token, but besides that,
you
need that introductory dollar sign to get variable and command
substitution
done on the condition before it is interpreted as a regexp.  Otherwise a
medial or final dollar sign will represent a hard newline included in the
pattern.

Bingo! now it works, thanks a lot.

regards,
wolfgang

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