On Mon, Aug 11, 2003 at 10:55:54AM +0200, Tomasz Papszun wrote:
> With "--mbox" option clamscan does handle attachments. At least it

Hrmf. Not here.

mail:~/Maildir/cur (106) % cat 1057682150.37472_57:2,S | clamscan --mbox -
LibClamAV Error: Not a valid mail message
<snip>

> should. I mean that sometimes it seemingly somehow doesn't properly
> decode attachments. It isn't critical with scanning mail in transfer
> as amavis* does all this processing well.

'Sometimes' is bad. :-)

> Personally, I use a good text editor like vi for extracting encoded
> attachments. If you don't know what part of an email to extract for
> proper decoding, just ask me.

I need this to be automated. "Here's a bunch of files, take each one and
pipe it into this scripty. The exit code or STDOUT will tell you if it
contains a virus or not."


> Then I use 'mimencode' program for decoding files, like:
> 'mimencode -u encoded_file -o decoded_file'
> (rarely with -q option - when encoding is "quoted-printable" instead of
> "base64").
> Then, having "normal" binary files, I hand them to clamscan (one may use
> --disable-summary option for shortness).

Yeah, I tried that program. However, like you outlined, it requires the
attachment(s) being separated from the msg.

Thanks for the advice though. I'll keep looking.



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to