summaryrefslogtreecommitdiff
path: root/Mailman/app/rules.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/app/rules.py')
-rw-r--r--Mailman/app/rules.py21
1 files changed, 1 insertions, 20 deletions
diff --git a/Mailman/app/rules.py b/Mailman/app/rules.py
index f0209c767..50bb8d281 100644
--- a/Mailman/app/rules.py
+++ b/Mailman/app/rules.py
@@ -17,10 +17,7 @@
"""Various rule helpers"""
-__all__ = [
- 'TruthRule',
- 'initialize',
- ]
+__all__ = ['initialize']
__metaclass__ = type
@@ -33,24 +30,8 @@ from Mailman.interfaces import IRule
-class TruthRule:
- """A rule that always matches."""
- implements(IRule)
-
- name = 'truth'
- description = 'A rule which always matches.'
- record = False
-
- def check(self, mlist, msg, msgdata):
- """See `IRule`."""
- return True
-
-
-
def initialize():
"""Find and register all rules in all plugins."""
- # Register built in rules.
- config.rules[TruthRule.name] = TruthRule()
# Find rules in plugins.
for rule_finder in get_plugins('mailman.rules'):
for rule_class in rule_finder():