Bug 5614

Summary: score MY_TEST the_same_as_the_score_of SOME_OTHER_TEST
Product: Spamassassin Reporter: jidanni
Component: DocumentationAssignee: SpamAssassin Developer Mailing List <dev>
Status: NEW ---    
Severity: enhancement CC: matt
Priority: P5    
Version: 3.2.3   
Target Milestone: Undefined   
Hardware: Other   
OS: other   
Whiteboard:
Attachments: meta_score patch (vs svn)
meta_score patch (vs svn)

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.