Bump copyright years.
[mailman.git] / src / mailman / rules / truth.py
blobd50b5eae49bda690e8b557844afeb4563c2165d5
1 # Copyright (C) 2008-2014 by the Free Software Foundation, Inc.
3 # This file is part of GNU Mailman.
5 # GNU Mailman is free software: you can redistribute it and/or modify it under
6 # the terms of the GNU General Public License as published by the Free
7 # Software Foundation, either version 3 of the License, or (at your option)
8 # any later version.
10 # GNU Mailman is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 # more details.
15 # You should have received a copy of the GNU General Public License along with
16 # GNU Mailman. If not, see <http://www.gnu.org/licenses/>.
18 """A rule which always matches."""
20 from __future__ import absolute_import, print_function, unicode_literals
22 __metaclass__ = type
23 __all__ = [
24 'Truth',
28 from zope.interface import implementer
30 from mailman.core.i18n import _
31 from mailman.interfaces.rules import IRule
35 @implementer(IRule)
36 class Truth:
37 """Look for any previous rule match."""
39 name = 'truth'
40 description = _('A rule which always matches.')
41 record = False
43 def check(self, mlist, msg, msgdata):
44 """See `IRule`."""
45 return True