SA Bugzilla – Bug 6426
[review] "Use of uninitialized value in pattern match" warnings
Last modified: 2011-05-23 23:08:59 UTC
I gt a lot of these error messages in my mail.log: Apr 29 11:24:12 aegir spamd[1103]: Use of uninitialized value in pattern match (m//) at /usr/local/lib/perl5/site_perl/5.8.9/Mail/SpamAssassin/Plugin/URIDNSBL.pm line 925, <GEN7455> line 124. Line 925 is the following: next if ($tflags->{$rulename} =~ /\b(?:ips_only|domains_only)\b/); so it seems $tflags->{$rulename} does not exist. Debugging show that the rule triggering the error is a user-created rule, which indeed does not declare any tflags. I propose to change the code to: next if (exists $tflags->{$rulename} and $tflags->{$rulename} =~ /\b(?:ips_only|domains_only)\b/); to fix the problem. Alternatively, you could add a warning when reading the user prefs, telling the user to add a tflags line to his rule.
Sure, can't hurt, +1 trunk: Bug 6426: "Use of uninitialized value in pattern match" warnings' Sending lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm Committed revision 1124798.
Close. Already committed to target.
Closing.