/[Apache-SVN]/spamassassin/trunk/t/meta.t
ViewVC logotype

Diff of /spamassassin/trunk/t/meta.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- spamassassin/trunk/t/meta.t	2005/07/13 18:13:28	216201
+++ spamassassin/trunk/t/meta.t	2005/07/13 18:15:43	216202
@@ -64,11 +64,20 @@ for (my $scoreset = 0; $scoreset < 4; $s
 	    $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;
 	}

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26