procmail
[Top] [All Lists]

assigning pipes and commands to Variables

2001-09-03 16:33:58
Hello,
   I want to source procmail rules that someone else wrote.  They use a
variable for the action of each rule.  It is intended that each variable be
set to a mailbox name.  However, I use mbx mailboxes with the University of
Washington imap server.  So, to deliver my mail the rules need to pipe to
the dmail program to deliver.  ie:

:0
* ^Subject:.*Test
| /usr/local/bin/dmail +Test

I want to set a variable with the action.  I expected it to be something
like this:
TEST_MAIL="| /usr/local/bin/dmail +Test"

However, procmail always interprets this as a mailbox name and delivers mail
to the mailbox "|".  I have tried many different ways of quoting and
escaping character but procmail always interprets the contents of the
variable as a mailbox to deliver to.

Is there a way to assign a variable so that procmail will pipe to the dmail
program? 

I am trying to avoid editing the original procmail rules.  I want to be able
to source the authors original rules so I always have them uptodate. It
would also help if I could assign $DEFAULT in the same way.

Thank you

-Brian Young

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