procmail
[Top] [All Lists]

matching multiple static email addresses in a variable

2001-02-20 13:00:25

I have a variable called ME which is defined like this:

ME="(one(_at_)place\(_dot_)com|another(_at_)elsewhere\(_dot_)org|still(_at_)yetanother\(_dot_)gov)"


Then I want to be able to use it in recipes such as

:0
* ^To:.*$ME
{ blah blah blah }

But it doesn't seem to work.

I've tried a few variations but all of them seem to be missing something.... see
brief log excerpt below:

procmail: No match on "^To:.*$ME"
procmail: No match on "^To:.*$ME"
procmail: No match on "^To:.*"$ME""
procmail: No match on "^To:.*($ME)"
procmail: No match on "^To:.*($ME)"


is there a way to do this? (I'm sure there is)

so what really simple thing am I overlooking?

TIA
TjL

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