Clam AntiVirus plugin for SpamAssassin 3.x

2004-11-06 Thread Troels Walsted Hansen
like with it. Note that it requires File::Scan::ClamAV. Tested with SpamAssassin 3.0.1, ClamAV 0.80 and courier 0.44. Regards, Troels Walsted Hansen package ClamAV; use strict; use Mail::SpamAssassin; use Mail::SpamAssassin::Plugin; use File::Scan::ClamAV; our @ISA = qw(Mail::SpamAssassin::Plu

Re: Clam AntiVirus plugin for SpamAssassin 3.x

2004-11-06 Thread Troels Walsted Hansen
SA wrote: On Sat, 2004-11-06 at 09:49, Troels Walsted Hansen wrote: Hi all, I created a small plugin using the new plugin API in SpamAssassin 3.x. The plugin connects to a local ClamAV server (through TCP) and checks the email for virus. If a virus is found, it returns a positive return code to

Re: Clam AntiVirus plugin for SpamAssassin 3.x

2004-11-06 Thread Troels Walsted Hansen
marti wrote: If the virus.db is always loaded, and assuming long uptimes, which *nix is good at, your virus definitions could be well out of date before they are next loaded, seems logical to load them on the fly to me. The standard installation of ClamAV features a cron script that downloads u

Re: Clam AntiVirus plugin for SpamAssassin 3.x

2004-11-09 Thread Troels Walsted Hansen
Brook Humphrey wrote: This is my first Perl code ever, so be gentle. ;-) The code is public domain, do whatever you like with it. Note that it requires File::Scan::ClamAV. Tested with SpamAssassin 3.0.1, ClamAV 0.80 and cou

Re: Clam AntiVirus plugin for SpamAssassin 3.x

2004-11-10 Thread Troels Walsted Hansen
Daryl C. W. O'Shea wrote: Well sort of. The headers only get set if the message ends up being classified as spam. If you receive a virus from a whitelisted user, or in a message that would otherwise score less than -5.0 (at least with the default score CLAMAV 10), the X-Spam-Virus: Yes ($virus

Re: Clam AntiVirus plugin for SpamAssassin 3.x

2004-11-10 Thread Troels Walsted Hansen
Justin Mason wrote: I was expecting a $permsgstatus->add_header() function or similar, and when I didn't find I grepped the SA source until I found an alternative way to add headers to the mail. This is definitely an interesting feature idea. Could you open a bug on the bugzilla for that?

Re: Clam AntiVirus plugin for SpamAssassin 3.x

2004-11-10 Thread Troels Walsted Hansen
Justin Mason wrote: I was going to, but then I found Bug #3389: "Request for ability to add arbitrary headers from plugins" I think that covers it pretty well..? yep; noted. I've added a note. Thanks. Also, putting the plugin code i

Re: 80K file attachments

2004-11-23 Thread Troels Walsted Hansen
Pat Traynor wrote: Well, my email doesn't get any further than my Linux box, so I'm not in any danger of being infected. But I provide email storage for others who are using SpamAssassin, and I like to eliminate whatever I can before it gets to them. The virus doesn't bother me. It's the emails