procmail
[Top] [All Lists]

Re: Making Clamscan work

2004-04-14 18:11:44
I don't understand this bit. We save clamscan's exit code. Are we looking for a -1 or CS_EXIT in any of the lines followed by a zero or is it being raised to the zero power (which is always 1)?

Thanks.


Dallman Ross wrote:
On Tue, Apr 13, 2004 at 10:27:52PM -0400, Brett I. Holcomb wrote:

I am currently using Thunderbird for mail but am switching to Pine with fetchmail getting the mail and feeding it to procmail.
   SC_OUT=| clamscan --mbox --disable-summary --stdout -
   {
        CS_EXIT = $?

        :0:  # look for any clamscan problems ( exit code > 1 )
        *          -1^0
        * $  $CS_EXIT^0
        clamscan_problem

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

<Prev in Thread] Current Thread [Next in Thread>