develooper Front page | perl.cvs.qpsmtpd | Postings from December 2005

[svn:qpsmtpd] r587 - trunk trunk/plugins/virus

From:
ask
Date:
December 16, 2005 14:27
Subject:
[svn:qpsmtpd] r587 - trunk trunk/plugins/virus
Message ID:
20051216222728.9163.qmail@x1.develooper.com
Author: ask
Date: Fri Dec 16 14:27:27 2005
New Revision: 587

Modified:
   /   (props changed)
   trunk/Changes
   trunk/plugins/virus/clamdscan
Log:
 r2614@g5:  ask | 2005-12-16 14:27:01 -0800
   Make the clamdscan plugin temporarily deny mail if if can't talk to clamd
   (Filippo Carletti)


Modified: trunk/Changes
==============================================================================
--- trunk/Changes	(original)
+++ trunk/Changes	Fri Dec 16 14:27:27 2005
@@ -1,3 +1,9 @@
+0.40
+
+  Make the clamdscan plugin temporarily deny mail if if can't talk to clamd
+  (Filippo Carletti)
+
+
 0.31 -
 
   qpsmtpd-forkserver: --listen-address may now be given more than once, to

Modified: trunk/plugins/virus/clamdscan
==============================================================================
--- trunk/plugins/virus/clamdscan	(original)
+++ trunk/plugins/virus/clamdscan	Fri Dec 16 14:27:27 2005
@@ -153,7 +153,7 @@ sub hook_data_post {
         $clamd = Clamd->new();    # default unix domain socket
     }
 
-    return (DECLINED) unless $clamd->ping();
+    return (DENYSOFT) unless $clamd->ping();
 
     if ( my %found = $clamd->scan($filename) ) {
         my $viruses = join( ",", values(%found) );



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About