procmail
[Top] [All Lists]

Re: conditions based on variables

2005-09-23 08:18:39
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

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