procmail
[Top] [All Lists]

Re: conditions based on variables

2005-09-23 08:26:04
David W. Tamkin wrote:
Joe,

From within procmailrc, among other things, I would like to
execute a command based on a condition using procmail variables.

NUM_FILES=`ls /tmp/* | wc -l `

#pseudo code
:0
* NUM_FILES > 1
| mycommand

Can this be done somehow?


 :0 flags
 * $ `ls /tmp/* | wc -l`^0
 * -1^0
 | yourcommand

Thank you!  Can you point me to docs that cover this?

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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