http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4778





------- Additional Comments From [EMAIL PROTECTED]  2006-02-03 03:09 -------
Created an attachment (id=3356)
 --> (http://issues.apache.org/SpamAssassin/attachment.cgi?id=3356&action=view)
nonfunctional concept code

This is a not-yet-working stab at moving the "body" rule type into a plugin.

do_body_tests() has not yet been moved into the plugin.  I also need to figure
out a generic way to deal with user_rules_to_compile, head_only_points,
body_only_points, and a few other loose ends.

Basically, the idea is that rule type plugins are responsible for:

* Registering their tests with define_test
* Storing their own test definitions
* Obtaining any data needed to evaluate their tests
* Evaluating their tests when called through check_priority

Rule type plugins may ignore priority when appropriate.  For example, the meta
type plugin may evaluate a test when all its dependencies are met and DNS type
plugins may evaluate a test when all its DNS responses arrive.

There is no eval type plugin, but there is a core eval test subsystem that can
be used by rule type plugins.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to