svn commit: r1932846 - spamassassin/trunk/lib/Mail/SpamAssassin/Plugin

[email protected]
Newsgroups gmane.mail.spam.spamassassin.cvs
Message-ID <177531277635.3225624.9312814568778739995@svn03-he-fi>
Author: fkento
Date: Sat Apr  4 14:26:16 2026
New Revision: 1932846

Log:
Honor skip_uribl_checks in AskDNS plugin

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

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/AskDNS.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/AskDNS.pm	Sat Apr  4 12:59:22 2026	(r1932845)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/AskDNS.pm	Sat Apr  4 14:26:16 2026	(r1932846)
@@ -33,6 +33,8 @@ responses trickle in, filters them accor
 record type and optional subrule filtering expression, yielding a rule hit
 if a response meets filtering conditions.
 
+Setting C<skip_uribl_checks> to 1 will disable AskDNS queries.
+
 Any host or its domain part matching uridnsbl_skip_domains is ignored
 by default.  To bypass this check for specific rules, use the C<noskip>
 tflag:
@@ -370,6 +372,7 @@ sub check_dnsbl {
   my $pms = $opts->{permsgstatus};
   my $conf = $pms->{conf};
 
+  return if $conf->{skip_uribl_checks};
   return if !$pms->is_dns_available();
 
   # walk through all collected askdns rules, obtain tag values whenever
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.