procmail
[Top] [All Lists]

Re: Variables in conditions

2002-05-29 18:26:50
On Thu, May 30, 2002 at 02:54:11AM +0200, wolfgang wrote:
in my .procmailrc, i set an environment variable like
MYVAR = something
i want to use it in a condition like
* TOsomething(_at_)mydoma(_dot_)in
but
* TO${MYVAR}
isn't matched, nor is
* TO$MYVAR or * TO ${MYVAR}(_at_)doma(_dot_)in

could someone point me in the right direction?

Are you sure you're using "TO${MYVAR}"? The correct form would be "^TO${MYVAR}".
The ^ is important.

-- 
Andrew Edelstein        -       http://andrew.pure-chaos.com/resume.txt

Please do not reply directly to me, or Cc: me on a reply to a list message.
I'll get my copy from the list.
_______________________________________________
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>