On Saturday 31 October 2009, Yet Another Ninja wrote:
>On 10/31/2009 2:16 PM, Gene Heskett wrote:
>> Greetings;
>>
>> Does anyone have a procmail recipe that incorporates clamav into the
>> checks, and one that handles the clamav output to /dev/null the viri etc?
>>
>> At least I assume clamav doesn't auto-delete, I've not yet studied all
>> the docs, but do have freshclam running apparently ok.
>
>this works for me:
>:0cW
>:
>|clamdscan --no-summary --stdout -
>
>CLAMAV_CODE=$?
>
>:0
>
>* CLAMAV_CODE ?? 1
>/dev/null
>
This looks like what I had in mind.  But since I don't have that part checked 
out yet, would it then delete the mail because clamdscan had an error?  I'll 
enable the second after the first is working. :)

Many Thanks.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
The NRA is offering FREE Associate memberships to anyone who wants them.
<https://www.nrahq.org/nrabonus/accept-membership.asp>

"`If there's anything more important than my ego around, I 
want it caught and shot now.'" 

- Zaphod. 

Reply via email to