Welcome to WebmasterWorld Guest from 3.94.129.211

Forum Moderators: bakedjake

Message Too Old, No Replies

procmail syntax - variable substitution

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

Senior Member from ES 

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

joined:July 24, 2002
posts:1129
votes: 2


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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 10, 2001
posts:1551
votes: 10


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.

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

Senior Member from ES 

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

joined:July 24, 2002
posts:1129
votes: 2


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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 10, 2001
posts:1551
votes: 10


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

* $ ^TO${MYEMAIL}
7:10 am on Oct 25, 2005 (gmt 0)

Senior Member from ES 

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

joined:July 24, 2002
posts:1129
votes: 2


thank you bird!

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

much obliged

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members