On Thu, 2008-04-10 at 13:58 +0100, Greg Smith wrote:
> I am trying to scan files so that clam scans the entire file for all viruses
^^^^^
Smells like mbox.
> and doesnt stop at the first one it finds? Is this possible?
In that case, formail is your friend. If you're not about mbox files,
please be more specific.
$ formail -s clamdscan - < $mbox
guenther
--
char *t="[EMAIL PROTECTED]";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html