On Fri, Feb 14, 2014 at 01:09:55PM -0500, Noah Meyerhans wrote:
> 
> I'll put together code to suppress these messages under '--quiet'.
> 

And here is the patch. The warnings will be emitted under normal
operation, but will be suppressed if sa-compile is run with --quiet.

Thanks
noah

Index: 
spamassassin-3.4.0~rc5/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm
===================================================================
--- 
spamassassin-3.4.0~rc5.orig/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm
   2014-01-11 09:13:23.000000000 -0800
+++ 
spamassassin-3.4.0~rc5/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm    
    2014-02-14 21:34:59.109796791 -0800
@@ -192,7 +192,8 @@
         dbg("zoom: giving up on regexp: $eval_stat");
       };
 
-      if ($lossy && ($tflags->{$name}||'') =~ /\bmultiple\b/) {
+      if ($lossy && ($tflags->{$name}||'') =~ /\bmultiple\b/ &&
+          $self->{show_progress}) {
         warn "\nzoom: rule $name will loop on SpamAssassin older than 3.3.2 ".
              "running under Perl 5.12 or older, Bug 6558\n";
       }

Attachment: signature.asc
Description: Digital signature

Reply via email to