procmail
[Top] [All Lists]

Re: Real Virus Scanner

2004-02-11 17:25:08
On Wed, Feb 11, 2004 at 04:14:16PM -0700, Scott Wiersdorf wrote:
On Wed, Feb 11, 2004 at 02:53:25PM -0800, Gary Funck wrote:

Thanks to Christopher's hint, I wound up with the following in procmailrc,
which seems to be working:

        #======================================================
        # clamav virus scan
        #======================================================
        :0 HB
        VIRUS=|/usr/bin/clamscan --mbox --disable-summary --stdout  -

The HB flags apply to conditions, of which you have none. By default
procmail pipes both h and b, so you can remove 'HB':

    :0 HB
    VIRUS=|/usr/bin/clamscan --mbox --disable-summary --stdout  -

Er, Gary wrote me off-list. I forgot to remove the HB:

    :0
    VIRUS=|/usr/bin/clamscan --mbox --disable-summary --stdout  -

We were also wondering what the semantic difference between the above
and backticks would be:

    VIRUS=`/usr/bin/clamscan --mbox --disable-summary --stdout  -`

Anyone?

Scott
-- 
Scott Wiersdorf
scott(_at_)perlcode(_dot_)org

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