You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2021/05/10 18:37:30 UTC
[Bug 7907] New: Meta tests should be devolved to determine whether
they apply to the header, body or both
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7907
Bug ID: 7907
Summary: Meta tests should be devolved to determine whether
they apply to the header, body or both
Product: Spamassassin
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Learner
Assignee: dev@spamassassin.apache.org
Reporter: bert@bhack.net
Target Milestone: Undefined
As outlined within bugs 7905 and 7906, meta tests are maltreated within the
__get_autolearn_points, maybe_header_only and maybe_body_only functions. I
suggest meta tests should be parsed further to determine whether they
constitute a combination of only header tags, only body tags or a mix. If it is
a mix, I would suggest a ratio is returned so the score can be partially
attributed to header and partially to body.
However, I can think of certain meta rules I've written of a similar form to
"if more than 3 of the following 10 tests succeed, then attribute this score",
it may sometimes prove difficult to clearly indicate whether a test is actually
header, body or a specific ratio of both. Therefore it's maybe worth
considering having meta rules report their own categorization, for example with
tflags like autolearn_header autolearn_body autolearn_both and the existing
noautolearn for those to difficult to categorise.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7907] Meta tests should be devolved to determine whether they apply to the header, body or both
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7907
Henrik Krohns <ap...@hege.li> changed:
What |Removed |Added
----------------------------------------------------------------------------
Hardware|PC |All
OS|Linux |All
Resolution|--- |FIXED
CC| |apache@hege.li
Target Milestone|Undefined |4.0.0
Status|NEW |RESOLVED
--- Comment #1 from Henrik Krohns <ap...@hege.li> ---
Added autolearn_header and autolearn_body tflags support on top of previous Bug
7905 and Bug 7906 fixes.
Sending trunk/UPGRADE
Sending trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
Sending trunk/lib/Mail/SpamAssassin/Plugin/AutoLearnThreshold.pm
Transmitting file data ...done
Committing transaction...
Committed revision 1899526.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7907] Meta tests should be devolved to determine whether they
apply to the header, body or both
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7907
Bert Van de Poel <be...@bhack.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bert@bhack.net
--
You are receiving this mail because:
You are the assignee for the bug.