You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2005/07/13 20:15:45 UTC

svn commit: r216202 - /spamassassin/trunk/t/meta.t

Author: jm
Date: Wed Jul 13 11:15:43 2005
New Revision: 216202

URL: http://svn.apache.org/viewcvs?rev=216202&view=rev
Log:
bug 4480: trivial t/ fix: avoid misfiring meta.t failure caused by 'tflags net' rules having zero scores in non-net scoresets

Modified:
    spamassassin/trunk/t/meta.t

Modified: spamassassin/trunk/t/meta.t
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/t/meta.t?rev=216202&r1=216201&r2=216202&view=diff
==============================================================================
--- spamassassin/trunk/t/meta.t (original)
+++ spamassassin/trunk/t/meta.t Wed Jul 13 11:15:43 2005
@@ -64,11 +64,20 @@
 	    $meta_dependency_nonexistent = 1;
 	    next;
 	  }
+
 	  # if dependency is a predicate, it'll run
 	  next if $depend =~ /^__/;
+
 	  # if dependency has a non-zero score, it'll run
 	  next if (defined $rules{$depend}->{score} &&
 		   $rules{$depend}->{score} != 0);
+
+          # ignore "tflags net" and "tflags learn" rules -- it is OK
+          # for those to have zero scores in some scoresets, for obvious
+          # reasons.
+          next if (defined $rules{$depend}->{tflags} &&
+                  $rules{$depend}->{tflags} =~ /\b(?:net|learn)\b/);
+
 	  warn "$name depends on $depend with 0 score in set $scoreset\n";
 	  $meta_dependency_disabled = 1;
 	}