Ticket #504 (new enhancement)

Opened 3 months ago

Last modified 3 months ago

Automatically insert new rules

Reported by: mortonda@… Owned by: rjl
Priority: normal Milestone: 1.0.3
Component: amavisd-maia Version: 1.0.2
Severity: normal Keywords:
Cc:

Description

Similar to #320 which just updates scores, we should be able to insert new rules as they are triggered, thus solving for all time this FAQ

All that is needed is a else clause in maia_record_tests()

Also, a web interface for the admin to edit the text description of missing rules would be handy.

Change History

Changed 3 months ago by rjl@…

It should be noted that this feature will not render the load-sa-rules.pl script obsolete, since there will always be a need for a tool that reads rule descriptions from existing *.cf files. This feature only adds the rule name and score, leaving the description field null, so if it were used in place of load-sa-rules.pl, all the rules in your database would show up as "(No description provided)", which is less than ideal when we're talking about thousands of rules--no one is going to want to edit all of those descriptions by hand.

What this feature does do, though, is catch the rules that load-sa-rules.pl currently fails to pick up (because they lack 'describe' lines). It adds these rules with null descriptions which can be edited later by the superadmin. Ticket #357 still needs to be resolved, at which point the problems with load-sa-rules.pl will be eliminated and this new feature won't offer much, apart from catching new rules that have been added by admins who don't automatically run load-sa-rules.pl whenever rules are updated.

Note: See TracTickets for help on using tickets.