https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7823
Bug ID: 7823
Summary: HashBL.pm confusingly not only looking at headers
Product: Spamassassin
Version: 3.4.4
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Plugins
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: Undefined
The docs for HashBL.pm say you should use it like this:
header HASHBL_EMAIL eval:check_hashbl_emails('ebl.msbl.org.')
describe HASHBL_EMAIL Message contains email address found on the EBL
score HASHBL_EMAIL 9.0
This implies that it is going to look at the headers of messages.
However, the check_hashbl_emails function has multiple optional arguments. The
second arg is called 'HEADERS' in the docs and allows you to specifiy which
headers to look at. You can also specify 'body' which makes it look at the
body.
The default in check_hashbl_emails() is:
$from = 'ALLFROM/Reply-To/body' if !$from;
which, if you don't specify a HEADER arg to search through though the body of
the messages. THIS IS BIZZARLY OVERLOADED.
I did not know the best way to fix this. The config rule type should be
'header' or 'body' or 'full' and that should dictate which part of the message
it looks through. The HEADER arg could still filter out specific headers.
The doc section of the module should also be cleaned up to reflect this.
--
You are receiving this mail because:
You are the assignee for the bug.