Jari, > Apr 7 10:07:41 lancaster check[1339]: Use of uninitialized value > $origip in concatenation (.) or string at > /usr/local/share/perl/5.10.0/Mail/SpamAssassin/AutoWhitelist.pm line 346. > > 3.3.1 in Debian Lenny, compiled via CPAN. > > I have not seen this message before, but now it came. I have no idea of > the message which caused this.
Probably as a result of a syntactically incorrect Received header field, or incorrect parsing of it (see bug 6402). Here below is a patch to avoid warnings (which are innocent, but still...) Please open a bug report so that we can properly fold-in the patch. --- lib/Mail/SpamAssassin/AutoWhitelist.pm (revision 931157) +++ lib/Mail/SpamAssassin/AutoWhitelist.pm (working copy) @@ -324,7 +324,9 @@ if (defined $result && length($result) > 39) { # just in case, keep under $result = substr($result,0,39); # the awl.ip field size } - dbg("auto-whitelist: IP masking %s -> %s", $origip,$result); + if (defined $result) { + dbg("auto-whitelist: IP masking %s -> %s", $origip,$result); + } return $result; } @@ -336,12 +338,13 @@ $addr = lc $addr; $addr =~ s/[\000\;\'\"\!\|]/_/gs; # paranoia + if (defined $origip) { + $origip = $self->ip_to_awl_key($origip); + } if (!defined $origip) { # could not find an IP address to use, could be localhost mail # or from the user running "add-addr-to-*". $origip = 'none'; - } else { - $origip = $self->ip_to_awl_key($origip); } return $addr . "|ip=" . $origip; } Mark