Package: spamassassin Version: 3.3.1-1 Plugins::URIDNSBL complains about undefined values in tflags if an additional rule has been added to the configuration which does not have a tflag set. Instead, it should test for the existance of tflags before testing the regex. The attached patch fixes this.
Don Armstrong -- One day I put instant coffee in my microwave oven and almost went back in time. -- Steven Wright http://www.donarmstrong.com http://rzlab.ucr.edu
Description: Do not complain if tflags are not set for a uridnsbl Origin: Don Armstrong <d...@debian.org> Forwarded: no ============================================================ --- a/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm +++ b/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm @@ -953,7 +953,8 @@ my $rulecf = $scanner->{conf}->{uridnsbls}->{$rulename}; # ips_only/domains_only lookups should not act on this kind of BL - next if ($tflags->{$rulename} =~ /\b(?:ips_only|domains_only)\b/); + next if (defined $tflags->{$rulename} and + $tflags->{$rulename} =~ /\b(?:ips_only|domains_only)\b/); $self->lookup_single_dnsbl($scanner, $obj, $rulename, $revip, $rulecf->{zone}, $rulecf->{type});