Here's the original recipe with corrections made. This should
be good to go.
#======================================================
# clamav virus scan
#======================================================
:0 wic
VIRUS=|/usr/bin/clamscan --mbox --disable-summary --stdout -
:0 hfw
* VIRUS ?? ^.*: \/.* FOUND
| formail -A "X-Virus-Status: yes, $MATCH"
:0 E hfw
| formail -A "X-Virus-Status: no"
Above, is there a procmail idiom for finding the part of MATCH that doesn't
include " FOUND"? In other words, the equivalent of:
MATCH=`echo $MATCH | sed -e 's/ FOUND$//'`
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail