procmail
[Top] [All Lists]

Re: --> reading multiple TO addresses from a file.

2000-09-14 20:51:50
Widodo Krisman had this condition on a recipe:

K> * ^TO`cat /etc/myaddress.txt`

and Sean Straw wrote,

S> Further, this regexp should (unless I'm mistaken) be 
S> preceded by $ so that the results are expanded and then interpreted (but 
S> as I've not tried doing this, I don't know that for sure - I use $ for 
S> variable expansions).

You weren't mistaken about that, Sean, and you can be sure.  The "$" modifier
is necessary to get backquote expansion in a regular expression.  The expres-
sion should be

 * $ ^TO`cat /etc/myaddress.txt`

or perhaps the same with ^TO_ instead of ^TO.


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