summaryrefslogtreecommitdiff
path: root/src/mailman/plugins/testing/example/rules/rules.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/plugins/testing/example/rules/rules.py')
-rw-r--r--src/mailman/plugins/testing/example/rules/rules.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mailman/plugins/testing/example/rules/rules.py b/src/mailman/plugins/testing/example/rules/rules.py
new file mode 100644
index 000000000..7e9ba6ce7
--- /dev/null
+++ b/src/mailman/plugins/testing/example/rules/rules.py
@@ -0,0 +1,14 @@
+from mailman.interfaces.rules import IRule
+from public import public
+from zope.interface import implementer
+
+
+@public
+@implementer(IRule)
+class ExampleRule:
+ name = 'example-rule'
+ description = 'An example rule.'
+ record = True
+
+ def check(self, mlist, msg, msgdata):
+ return 'example' in msgdata