summaryrefslogtreecommitdiff
path: root/Mailman/interfaces/rules.py
Commit message (Collapse)AuthorAgeFilesLines
* Bite the bullet: rename the Mailman package to mailman.Barry Warsaw2008-02-271-45/+0
|
* Tweak copyright years.Barry Warsaw2008-02-071-1/+1
|
* More changes to rules and chains.Barry Warsaw2008-01-231-4/+9
| | | | | | | | | | | | | Now a link has a rule, action, chain, and function, not all of which needs to be specified. The action is a LinkAction enum adn specifies what to do should the rule match. The use of the chain or function depends on what the action is. Several interface changes now make it easier to jump to other chains, push (i.e. detour) to chains, etc. Rules can also now specify that they should not be recorded in X-* headers. Added a TruthRule which always matches.
* Use a more efficient way of deleting rows from a table, which coincidentallyBarry Warsaw2008-01-141-28/+0
| | | | <wink> works around the storm cache bug #178546.
* Fix the rule api once more so that while rules themselves are still classes,Barry Warsaw2008-01-011-16/+0
| | | | | | | | they are instantiated by the IRuleSet, thus keeping the promises of the interface. The ChainJump enum is moved to interfaces/chain.py. This will be fleshed out subsequently.
* Extended test_documentation.py to be able to find doctests in subdirectoriesBarry Warsaw2008-01-011-1/+20
| | | | | | called 'docs' anywhere under the Mailman package. Change the rule API to return rule classes not instances. Added the ChainJump enum, though this will likely change soon.
* Convert the Approve.py handler to an approved.py rule. Update the doctest toBarry Warsaw2007-12-291-1/+2
| | | | | | | | | use the rule check instead of handler processing. Add a test for stripping the header from the text/html part to the doctest. Add Mailman.app.rules.find_rule() to return a named rule. Fix a few typos.
* Change IRuleProcessor to IRuleSet. Plugins now provide only sets of rules,Barry Warsaw2007-12-271-0/+64
they do not do the actual rule processing. That's left up to Mailman. Further, the rule processor can be given a list of rules to run; those will be the only ones run.