You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2004/12/16 07:25:07 UTC
svn commit: r122529 - /spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm
Author: felicity
Date: Wed Dec 15 22:25:05 2004
New Revision: 122529
URL: http://svn.apache.org/viewcvs?view=rev&rev=122529
Log:
got a syntax error doing reporting. also, no point in doing regexp since we're looking for explicit strings, just use eq.
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm
Url: http://svn.apache.org/viewcvs/spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm?view=diff&rev=122529&p1=spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm&r1=122528&p2=spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm&r2=122529
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm Wed Dec 15 22:25:05 2004
@@ -239,9 +239,9 @@
if ($err) {
alarm $oldalarm;
- if ($err =~ /^__alarm__$/) {
+ if ($err eq '__alarm__') {
dbg("reporter: pyzor report timed out after $timeout seconds");
- } elsif ($err /^__brokenpipe__$/) {
+ } elsif ($err eq '__brokenpipe__') {
dbg("reporter: pyzor report failed: broken pipe");
} else {
warn("reporter: pyzor report failed: $err\n");