http://kulturkonsult.no/stuff/pop3proxy_avg.txt is a modified version of pop3proxy.pl which scans every attachments (or more precisely base64 encoded MIME-parts) with avgscan.exe, the command-line virus scanner bundled with Grisoft AVG Antivirus Free Edition (www.grisoft.com). It adds a new header, X-Virus, to all scanned mail.


If a virus is found, the offending MIME-part (attachment) is removed and the X-Virus header is added which states virus-name and the filename in which it was found.

Its workings is pretty simple - at line 710 (just before the ordianry SA "scan_mail(\$message{$socket})" is called) I've added a call to remove_viruses(\$message{$socket}), which is defined on line 918.

remove_viruses() relies on MIME::Parser (from mimetools) to handle the attachments.
Note that the pop3proxy.pl I've used is probably getting old (I made this some time ago) - I can't remember the version, but it's from the days when SAproxy was still called pop3proxy and didn't have any of those fancy UI hooks like SAproxy has today :) However, applying this modification to newer versions will probably work out fine.


Here's a simple trick to run perl scripts in the background (I have this in a vbs-file in my Startup-folder):

Set Wshshell = wscript.createobject("WScript.shell")
Return = Wshshell.Run("c:\perl\bin\perl.exe c:\utils\pop3proxy\pop3proxy.pl",0)
Wscript.quit


Hope this can be useful for somebody!

Best regards,
Bjørn Langfors


------------------------------------------------------- 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 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to