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 2005/05/06 22:13:06 UTC

svn commit: r168646 - /spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm

Author: felicity
Date: Fri May  6 13:13:05 2005
New Revision: 168646

URL: http://svn.apache.org/viewcvs?rev=168646&view=rev
Log:
check for revoke_available in Reporter and throw a warning if no revoke methods were available

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?rev=168646&r1=168645&r2=168646&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm Fri May  6 13:13:05 2005
@@ -81,6 +81,10 @@
 
   $self->{main}->call_plugins("plugin_revoke", { revoke => $self, text => \$text, msg => $self->{msg} });
 
+  if ($self->{revoke_available} == 0) {
+    warn "reporter: no revoke methods available, so couldn't revoke\n";
+  }
+
   return $self->{revoke_return};
 }