summaryrefslogtreecommitdiff
path: root/Mailman/rules/loop.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/loop.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 'Mailman/rules/loop.py')
-rw-r--r--Mailman/rules/loop.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/rules/loop.py b/Mailman/rules/loop.py
index a88858d6a..93bd1241d 100644
--- a/Mailman/rules/loop.py
+++ b/Mailman/rules/loop.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
@@ -34,6 +34,7 @@ class Loop:
name = 'loop'
description = _("""Look for a posting loop, via the X-BeenThere header.""")
+ record = True
def check(self, mlist, msg, msgdata):
"""See `IRule`."""