https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6012





--- Comment #3 from Duncan Findlay <[email protected]>  2009-02-26 18:34:19 PST 
---
Created an attachment (id=4435)
 --> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4435)
Reuse plugin and supporting changes

This patch does the following:

- Pluginizes reuse functionality.
- Simulates adding reuse rule hits at the same stage of the message scanning
process as they would usually be run.
- Simplifies mass-check, parse-rules-for-masses, etc.
- Allows for "virtual" reuse rules -- rules that don't have a proper definition
in the current source, but may have a score (this could be useful for rules
that are distributed outside of the normal rules, for example the sought
ruleset).

Some side effects:

- Hits will no longer be added if the rule has a score of zero.
- "reuse" is a properly supported config option
- mass-check --reuse will run score set 0/2, not score set 1/3. (Reuse hits are
added regardless of score, but use --net as well if you want total score to
reflect score set 1 or 3 scores.)
- parse-rules-for-masses no longer knows anything about reused rules

(And probably some more I'm forgetting about.)

Please take a look. I'll assume lazy consensus and commit in a few days if I
don't hear anything. :-)


-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to