Bug 5614 - score MY_TEST the_same_as_the_score_of SOME_OTHER_TEST
Summary: score MY_TEST the_same_as_the_score_of SOME_OTHER_TEST
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 3.2.3
Hardware: Other other
: P5 enhancement
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-18 18:15 UTC by jidanni
Modified: 2007-09-27 03:03 UTC (History)
1 user (show)



Attachment Type Modified Status Actions Submitter/CLA Status
meta_score patch (vs svn) patch None Matthew Cline [HasCLA]
meta_score patch (vs svn) patch None Matthew Cline [HasCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description jidanni 2007-08-18 18:15:32 UTC
In Mail::SpamAssassin::Conf at
       score SYMBOLIC_TEST_NAME n.nn [ n.nn n.nn n.nn ]
mention how to (or and implement) make
       score MY_TEST the_same_as_the_score_of SOME_OTHER_TEST
without needing to hardwire the current values of OTHER_TEST's score
into the (user_prefs) file.

P.S., on Debian that man page looks like
  Mail::SpamAssassin::CoUserpContributed Perl DocumMail::SpamAssassin::Conf(3pm)
at its first line...
Comment 1 Matthew Cline 2007-09-27 02:43:20 UTC
Created attachment 4135 [details]
meta_score patch (vs svn)

This patch adds the new configuration setting "meta_score", which is used like:


meta_score TEST_A (TEST_B + TEST_C)

This is overkill for the requested feature, but with the ARITH_EXPRESSION_LEXER
regexp already defined for meta test lexing, doing it this way isn't that hard.
Comment 2 Matthew Cline 2007-09-27 03:03:21 UTC
Created attachment 4136 [details]
meta_score patch (vs svn)

Oops, was using ".." instead of "." for the string catenation operator;
uploaded fixed patch.