procmail
[Top] [All Lists]

Re: Summary: Conflict between c flag and filter

2002-08-29 09:28:11
On Wed, 28 Aug 2002, David W. Tamkin wrote:

Udi wrote,

|         :0 c
|         *  2^0 $ ! ? $ANTIVIRUS $FILE
|         * -1^0 $ NOTHING ?? ? /bin/rm $FILE
|         {
|                 :0 Hh
|                 $HEADER
|         }

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?
 $HEADER

        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).


Many hanks,
 Udi

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail