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/05 21:07:33 UTC

svn commit: r1860689 - /spamassassin/trunk/build/mkupdates/listpromotable

Author: pds
Date: Wed Jun  5 21:07:33 2019
New Revision: 1860689

URL: http://svn.apache.org/viewvc?rev=1860689&view=rev
Log:
T_ edgecase and friendlier to reuse flag

Modified:
    spamassassin/trunk/build/mkupdates/listpromotable

Modified: spamassassin/trunk/build/mkupdates/listpromotable
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/mkupdates/listpromotable?rev=1860689&r1=1860688&r2=1860689&view=diff
==============================================================================
--- spamassassin/trunk/build/mkupdates/listpromotable (original)
+++ spamassassin/trunk/build/mkupdates/listpromotable Wed Jun  5 21:07:33 2019
@@ -235,8 +235,8 @@ foreach my $plistkey (sort keys %{$plist
   # ie a rule must be promotable in all 3, to be listed.  (Also allow
   # rules that weren't in existence in the earlier mass-checks.)
   next unless ($plist->[1]->{$plistkey}->{promo});
-  next unless ($plist->[2]->{$plistkey}->{promo} or !defined($plist->[2]->{$plistkey}->{promo}));
-  next unless ($plist->[3]->{$plistkey}->{promo} or !defined($plist->[3]->{$plistkey}->{promo}));
+  next unless ($plist->[2]->{$plistkey}->{promo} or $plist->[2]->{"T_$plistkey"}->{promo} or !defined($plist->[2]->{$plistkey}->{promo}));
+  next unless ($plist->[3]->{$plistkey}->{promo} or $plist->[3]->{"T_$plistkey"}->{promo} or !defined($plist->[3]->{$plistkey}->{promo}));
 
   # only rules from "rulesrc" dirs
   my $src = $mailsa->{conf}->{source_file}->{$name};