diff -Nur -x '*.orig' -x '*.rej' qpsmtpd-0.40/plugins/virus/clamav mezzanine_patched_qpsmtpd-0.40/plugins/virus/clamav --- qpsmtpd-0.40/plugins/virus/clamav 2007-06-25 15:39:06.000000000 -0600 +++ mezzanine_patched_qpsmtpd-0.40/plugins/virus/clamav 2007-06-25 15:38:42.000000000 -0600 @@ -202,7 +202,7 @@ if ($signal) { $self->log(LOGINFO, "clamscan exited with signal: $signal"); - return (DECLINED); + return (DENYSOFT); } if ($result == 1) { $self->log(LOGINFO, "Virus(es) found: $output"); @@ -215,7 +215,11 @@ } elsif ($result) { $self->log(LOGERROR, "ClamAV error: $cmd: $result\n"); + return (DENYSOFT); } + + $transaction->header->add( 'X-Virus-Checked', + "Checked by ClamAV on " . $self->qp->config("me") ); return (DECLINED); } diff -Nur -x '*.orig' -x '*.rej' qpsmtpd-0.40/plugins/virus/clamdscan mezzanine_patched_qpsmtpd-0.40/plugins/virus/clamdscan --- qpsmtpd-0.40/plugins/virus/clamdscan 2007-06-14 11:57:23.000000000 -0600 +++ mezzanine_patched_qpsmtpd-0.40/plugins/virus/clamdscan 2007-06-25 15:38:21.000000000 -0600 @@ -154,8 +154,8 @@ } unless ( $clamd->ping() ) { - $self->log( LOGERROR, "Cannot ping clamd server - did you provide the correct clamd port or socket?" ); - return DENYSOFT; + $self->log( LOGERROR, "Cannot ping clamd server - did you provide the correct clamd port or socket?" ); + return DENYSOFT; } if ( my %found = $clamd->scan($filename) ) {