You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2018/09/28 07:27:13 UTC

svn commit: r1842214 - /spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Check.pm

Author: hege
Date: Fri Sep 28 07:27:13 2018
New Revision: 1842214

URL: http://svn.apache.org/viewvc?rev=1842214&view=rev
Log:
More bug 6728

Modified:
    spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Check.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Check.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Check.pm?rev=1842214&r1=1842213&r2=1842214&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Check.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Check.pm Fri Sep 28 07:27:13 2018
@@ -222,11 +222,12 @@ sub check_main {
   if ($pms->{conf}->{dns_block_rule}) {
     foreach my $rule (keys %{$pms->{conf}->{dns_block_rule}}) {
       next if !$pms->{tests_already_hit}->{$rule}; # hit?
-      my $domain = $pms->{conf}->{dns_block_rule}{$rule};
-      my $blockfile = $self->{main}->sed_path("__global_state_dir__/dnsblock_$domain");
-      next if -f $blockfile; # no need to warn and create again..
-      warn("check: dns_block_rule $rule hit, creating $blockfile\n");
-      Mail::SpamAssassin::Util::touch_file($blockfile, { create_exclusive => 1 });
+      foreach my $domain (keys %{$conf_ref->{dns_block_rule}{$rule}}) {
+        my $blockfile = $self->{main}->sed_path("__global_state_dir__/dnsblock_$domain");
+        next if -f $blockfile; # no need to warn and create again..
+        warn("check: dns_block_rule $rule hit, creating $blockfile\n");
+        Mail::SpamAssassin::Util::touch_file($blockfile, { create_exclusive => 1 });
+      }
     }
   }