procmail
[Top] [All Lists]

Re: Summary: Conflict between c flag and filter

2002-08-28 10:49:50
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

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
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail