Joe schreef:
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
* NUM_FILES ?? ^^[0-9]+^^
* ! NUM_FILES ?? ^^[01]^^
| mycommand
or:
:0
* NUM_FILES ?? ^^[0-9]+^^
* -1 ^ 0
*$ $NUM_FILES ^ 0
| mycommand
--
Grtz, Ruud
____________________________________________________________
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