New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in RedisAddrList.pm #2

Closed
hildeb opened this Issue Nov 23, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@hildeb

hildeb commented Nov 23, 2017

[root@mail-cbf] /usr/local/share/perl/5.22.1/Mail/SpamAssassin# diff -Bub RedisAddrList.pm.old RedisAddrList.pm
--- RedisAddrList.pm.old	2017-11-23 11:40:04.596673632 +0100
+++ RedisAddrList.pm	2017-11-23 13:13:35.653824497 +0100
@@ -133,14 +133,27 @@
 	  $self->{'prefix'}.$addr.'_count',
 	  $self->{'prefix'}.$addr.'_score' );
 
-  if ( my $mailaddr = ($addr) =~ /^(.*)\|ip=none$/) {
+  if ( my ($mailaddr) = ($addr) =~ /^(.*)\|ip=none$/) {
     # it doesn't have an IP attached.
     # try to delete any per-IP entries for this addr as well.
     # could be slow...

With the old syntax, the remove_entry subroutine in plugin searches using:

KEYS awl_1*
instead of

KEYS awl_localpart@domain*

@benningm benningm closed this in cef687d Nov 26, 2017

@benningm

This comment has been minimized.

Show comment
Hide comment
@benningm

benningm Nov 26, 2017

Owner

Thank you. Just fixed it.

Owner

benningm commented Nov 26, 2017

Thank you. Just fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment