https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7993
Bug ID: 7993 Summary: Plugin HashBL.pm: allow usage of HBL from Spamhaus Product: Spamassassin Version: 4.0.0 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P2 Component: Plugins Assignee: dev@spamassassin.apache.org Reporter: sa-...@lrz.de Target Milestone: Undefined Currently, if you want to use Spamhaus's HBL, you need to use Spamhaus's SH.pm plugin. Since this plugin is implemented extremely inefficiently, it has no caching implemented, it would be good if you could use the plugin HashBL.pm for this. HashBL.pm has implemented only md5 and sha1 as hash functions, SH.pm on the other hand uses sha256. Therefore the line use Digest::SHA qw(sha1_hex); should be extended to use Digest::SHA qw(sha1_hex sha256); In addition, encode_base32 from MIME::Base32 is required. SH.pm simply copied this function into the plugin. In sub _hash another branch is needed with return encode_base32(sha256($value)); Of course the options have to be adjusted as well. -- You are receiving this mail because: You are the assignee for the bug.