summaryrefslogtreecommitdiff
path: root/Mailman/rules/emergency.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-01-23 23:47:50 -0500
committerBarry Warsaw2008-01-23 23:47:50 -0500
commitdf637148d8fa2d5c101a990ee6766ea8547f000a (patch)
tree92e3e1c218c6f59031a0d0383a98a38e38dc2f9f /Mailman/rules/emergency.py
parent4460aad316db5c8af9b84c392e67441acaac9d72 (diff)
downloadmailman-df637148d8fa2d5c101a990ee6766ea8547f000a.tar.gz
mailman-df637148d8fa2d5c101a990ee6766ea8547f000a.tar.zst
mailman-df637148d8fa2d5c101a990ee6766ea8547f000a.zip
More changes to rules and chains.
Now a link has a rule, action, chain, and function, not all of which needs to be specified. The action is a LinkAction enum adn specifies what to do should the rule match. The use of the chain or function depends on what the action is. Several interface changes now make it easier to jump to other chains, push (i.e. detour) to chains, etc. Rules can also now specify that they should not be recorded in X-* headers. Added a TruthRule which always matches.
Diffstat (limited to '')
-rw-r--r--Mailman/rules/emergency.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/Mailman/rules/emergency.py b/Mailman/rules/emergency.py
index 0e6aa97b4..6d924b399 100644
--- a/Mailman/rules/emergency.py
+++ b/Mailman/rules/emergency.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2007 by the Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -33,9 +33,11 @@ class Emergency:
implements(IRule)
name = 'emergency'
- description = _("""\
-The mailing list is in emergency hold and this message was not pre-approved by
-the list administrator.""")
+ description = _(
+ """The mailing list is in emergency hold and this message was not
+ pre-approved by the list administrator.
+ """)
+ record = True
def check(self, mlist, msg, msgdata):
"""See `IRule`."""