On Wed, 28 Aug 2002, David W. Tamkin wrote:
| :0 c
| * 2^0 $ ! ? $ANTIVIRUS $FILE
| * -1^0 $ NOTHING ?? ? /bin/rm $FILE
| :0 Hh
Shouldn't that be just
:0hc # no local lockfile for $HEADER?
* 2^0 ! ? $ANTIVIRUS $FILE
* -1^0 NOTHING ?? ? rm $FILE # /bin isn't in $PATH?
I said the recipe is sharp and you make it more sharpen (:-)
Learn a lot this week - well, I thought that you forgot something
the "$", after some playing I understand that variables right to
the "?" are interpreted by the shell, isn't? It doesn't written
in the man pages!
Cloning procmail is a lot of overhead for no gain there.
It also seems to me that, since 2-1 is just as positive as 2^N - 1, the first
condition could be
* 0^2 ? $ANTIVIRUS $FILE
but I suppose that the inversion really costs nothing (though the
exponentiation might if the exit status of f-prot is greater than 1).
procmail mailing list