procmail
[Top] [All Lists]

Re: Unidentified subject!

1998-11-12 15:53:28
reb(_at_)timevest(_dot_)com writes:
This is driving me Nuts. If anyone can tell me why it doesn't work and
what I can do to get it to work, I'd appreciate it.

I've set up an Autoresponder script and if in tthe "TO" match line I
put in the actual name of the list and not the variable it works. BUT
if I put in the variable, it never matches. Here's the log output:

procmail: No match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Appare
ntly(-Resent)?)-To):(.*[^a-zA-Z])?)${LISTNAME}@"


and Here's the recipe

In .procmailrc I have:
...
:0
* ^TO${LISTNAME}@
* !^X-Loop: ${LISTNAME}(_at_)${ARDOMAIN}

Variables are only expanded in conditions if you preface the regexp with
the '$' special:

        :0
        * $   ^TO${LISTNAME}@
        * $ ! ^X-Loop: ${LISTNAME}(_at_)${ARDOMAIN}

Also, if you have procmail 3.11pre4 or later then you should probably
use ^TO_ instead of just ^TO (it's more specific in its matching).
Check out the MISCELLANEOUS section of the procmailrc(5) manpage.

Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>