Forum Moderators: bakedjake

Message Too Old, No Replies

procmail syntax - variable substitution

         

jamie

1:32 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi,

just fine-tuning a generic vacation message which could be used for all users on our server.

i find i am unable to substitute my email address for $MYEMAIL in the following condition:

* ^TOme@mydomain.com

i think i have tried every combination.

can anyone point me in the right direction please?

thanks

bird

2:40 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



MYEMAIL="me@mydomain.com"

...

* ^TO${MYEMAIL}

The curly braces {...} are not technically necessary in all cases, but they help a lot to avoid ambiguous situations. I just use them by principle.

jamie

6:31 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi bird,

thanks for reply, but unfortunately that doesn't seem to work?

i had already tried

* ^TO{$MYEMAIL}

and have now tried your version, but it is still not substituting. i have to manually spell out my email address for it to work.

hmmm...

bird

6:49 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Oh wait, you need to activate variable substitution for that line. This is done by adding another $ before the pattern.

* $ ^TO${MYEMAIL}

jamie

7:10 am on Oct 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



thank you bird!

had to wait until ww was back online before i could implement that ;)

much obliged