It did not detect ANY of the three viruses, which was depressing. I then read the clamscan manpage, and took particular note of the --mbox option.
--mbox Enable scanning of various mail file types (also treat stdin as a mailbox - for backward compatibility).
So I tried again with that option, and bingo!
You can activate that feature globally in your clamav.conf file. Just add the term 'ScanMail' on its own line in the config file, and clamscan will always try to read the files as email files.
That way you don't need to alter the qmail-scanner code at all.
Cheers,
Cees
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general