You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by pd...@apache.org on 2019/06/09 15:19:26 UTC

svn commit: r1860909 - /spamassassin/trunk/masses/hit-frequencies

Author: pds
Date: Sun Jun  9 15:19:26 2019
New Revision: 1860909

URL: http://svn.apache.org/viewvc?rev=1860909&view=rev
Log:
Detect T_ rules properly - helps with nice rules promo

Modified:
    spamassassin/trunk/masses/hit-frequencies

Modified: spamassassin/trunk/masses/hit-frequencies
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/hit-frequencies?rev=1860909&r1=1860908&r2=1860909&view=diff
==============================================================================
--- spamassassin/trunk/masses/hit-frequencies (original)
+++ spamassassin/trunk/masses/hit-frequencies Sun Jun  9 15:19:26 2019
@@ -331,6 +331,7 @@ my $test;
 foreach $test (keys %freq) {
   my $parsed_rules_entry = $rules{$test};
 
+  # Allow nice T_ rules to be detected
   my $no_t = $test;
   if ($no_t =~ s/^T_//) {
     if (defined $rules{$no_t}) {
@@ -483,6 +484,14 @@ if ($opt_T) {
 foreach $test (sort { $ranking{$b} <=> $ranking{$a} } @tests) {
   my $parsed_rules_entry = $rules{$test};
 
+  # Allow nice T_ rules to be detected
+  my $no_t = $test;
+  if ($no_t =~ s/^T_//) {
+    if (defined $rules{$no_t}) {
+      $parsed_rules_entry = $rules{$no_t};
+    }
+  }
+
   # do not require 'tmp/rules.pl' to have been built from the
   # exact same ruleset version; this assumption screws up nightly
   # mass-check reports if they are generated with a different SVN rev