summaryrefslogtreecommitdiff
path: root/src/mailman/plugins/testing/alternate/rules/rules.py
blob: f8b8d725cf9a0a8f5c317cce58e3c4bdd46b87b5 (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 AlternateRule:
    name = 'alternate-rule'
    description = 'An alternate rule.'
    record = True

    def check(self, mlist, msg, msgdata):
        return 'alternate' in msgdata