From: jaredj <[email protected]>
QP's connection to spamd unnecessarily persists beyond the run of the
spamassassin plugin itself. This closes the socket as soon as we're
finished using it.
---
plugins/spamassassin | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/plugins/spamassassin b/plugins/spamassassin
index 1c4aa85..6865efe 100644
--- a/plugins/spamassassin
+++ b/plugins/spamassassin
@@ -185,6 +185,7 @@ sub hook_data_post { # check_spam
}
my $tests = <SPAMD>;
+ close SPAMD;
$tests =~ s/\015//; # hack for outlook
$flag = $flag eq 'True' ? 'Yes' : 'No';
$self->log(LOGDEBUG, "check_spam: finished reading from spamd");
--
1.5.6.3
--
Inbound and outbound email scanned for spam and viruses by the
DoubleCheck Email Manager v5: http://www.doublecheckemail.com