I am hooking clamscan into a procmail filter like this:
:0
CLAMAV=|/usr/bin/clamscan --disable-summary --stdout --mbox -
:0
* CLAMAV ?? .*: \/.* FOUND
{
:0 fhw
| /usr/bin/formail -a"X-ClamAV: ${MATCH}"
}
But clamscan seems to hang and never return. From strace it seem to be
stuck in a loop:
l,-a,X-ClamAV: Worm.SCO.A-dam FOUND"
Of course this only is working because I have commented out that
section of code in the clean up function clamav_rmdirs.
Brian
[1] Originally copied from:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF
-8&selm=13w6cjksyx6
This is what I am using:
--- clamav.rc ---
:0
CLAMAV=|/usr/bin/clamdscan --mbox --disable-summary --stdout -
:0
* CLAMAV ?? .*: \/.* FOUND
{
:0 fhw
| /usr/bin/formail -a "X-ClamAV: ${MATCH}"
}
#:0E fhw
#| /usr/bin/formail -a "X-ClamAV: clean"
I didn't want to add a header to clean messag