procmail
[Top] [All Lists]

Re: Re: Making Clamscan work

2004-04-15 09:59:58
I got a chance to read man procmailsc during lunch.  Now it makes sense.  Thank 
you and I learned something else about procmail.


From: Dallman Ross <dman(_at_)nomotek(_dot_)com>
Date: 2004/04/15 Thu AM 08:37:16 GMT
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: Making Clamscan work

On Wed, Apr 14, 2004 at 09:00:18PM -0400, Brett I. Holcomb wrote:
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)?

:-)  Suggest you read through "man procmailsc".  I'll help you
along, though:

Dallman Ross wrote [here with typo fixed]:

           :0  # this is not a delivery recipe, but an assignment one
       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


"Weighted" or "scored" recipes have the condition format for the



_______________________________________________
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>