Bug 5558 - build/mkrules should strip "score" lines from sandbox rules
Summary: build/mkrules should strip "score" lines from sandbox rules
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Building & Packaging (show other bugs)
Version: 3.2.1
Hardware: Other other
: P5 normal
Target Milestone: 3.3.0
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-13 05:09 UTC by Justin Mason
Modified: 2007-08-22 05:01 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Mason 2007-07-13 05:09:42 UTC
(this is related distantly to bug 5545)

Occasionally we get contributed rulesets which contain "score" lines.  However
when we want to try out the rules in a sandbox, for testing, we do not want
these test rules to be given active scores (at least until we're happy with
them).

Currently, this requires hand-editing the contribution to comment out the
score lines.  It'd be neater if this was automatic, either by

(a) the script discussed in bug 5545, if that happens;

(b) a change to the mkrules script, which automatically discards ALL "score"
lines from sandbox files;

or (c) a change to mkrules which discards "score" lines for ONLY T_ rules /
"tflags nopublish" rules, therefore allowing promoted rules to still have their
scores set in the sandbox file.


(c) would be nicest I think.
Comment 1 Justin Mason 2007-08-22 04:39:55 UTC
ok, done


svn commit -m "bug 5558: comment out 'score' lines for non-promoted sandbox
rules automatically" build/mkrules
Sending        build/mkrules
Transmitting file data .
Committed revision 568571.
Comment 2 Justin Mason 2007-08-22 05:01:21 UTC
done