https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7906
Bug ID: 7906
Summary: Meta tests that do not use networking should not be
automatically considered as a header test in
_get_autolearn_points
Product: Spamassassin
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Learner
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: Undefined
Currently when tests are evaluated for the header and body scores for Bayes
autolearning, meta tests that define that they are not network tests (no tflags
= net) are considered both body and header tests. Of course this is obviously
not always the case in practice, since a meta test could combine only header
tests, only body tests, or a combination of both. Beyond that clearly incorrect
presumption, the code in PerMsgStatus.pm's _get_autolearn_points only considers
the maybe_body_only function if the maybe_header_only function has failed. This
means that any meta rule that does not have tflags including net, is always
considered a header test. This is absolutely false, as other code says it's
both, and all things considered it should actually depend on the rules the meta
test consists of.
--
You are receiving this mail because:
You are the assignee for the bug.