I think you aren't telling procmail to do a variable expansion in
the regular expression. I think the correct syntax would be
username=glaves
:0:
* $ ! ^TO_${username}(_at_)pinn\(_dot_)net
junkmailbox
:0:
.inbox
On Tue, 11 Jul 2000, Matt Glaves wrote:
I am attempting to write a system wide ruleset which will require minimal
modification to install in a users home directory. I am having problems
using a variable after the 'TO_' flag. Here is what I am trying to do:
---snip---
username=glaves
:0:
* ! ^To_$username(_at_)pinn(_dot_)net
junkmailbox
:0:
.inbox
---snip---
The snipit above does not work, but if I replace
'$username(_at_)pinn(_dot_)net' with
'glaves(_at_)pinn(_dot_)net', it works. I know I could limit it only to
"@pinn.net",
but I would like to have the ability to limit the mail to a single incoming
address.
Any help would be great.
thanks,
___________________
Matt Glaves
Systems Engineer
Pinnacle Online
www.pinn.net
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail