blob: 7e9ba6ce7be8d90ed1f8e3eaf6014f214b5881fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|