summaryrefslogtreecommitdiff
path: root/Mailman/docs/chains.txt
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/docs/chains.txt
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/docs/chains.txt')
-rw-r--r--Mailman/docs/chains.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/Mailman/docs/chains.txt b/Mailman/docs/chains.txt
index 1b22b9923..0a93683f7 100644
--- a/Mailman/docs/chains.txt
+++ b/Mailman/docs/chains.txt
@@ -310,7 +310,8 @@ The previously created message is innocuous enough that it should pass through
all default rules. This message will end up in the prep queue.
>>> file_pos = fp.tell()
- >>> chain.process(mlist, msg, {})
+ >>> from Mailman.app.chains import process
+ >>> process('built-in', mlist, msg, {})
>>> fp.seek(file_pos)
>>> print 'LOG:', fp.read()
LOG: ... ACCEPT: <first>
@@ -323,7 +324,8 @@ all default rules. This message will end up in the prep queue.
Message-ID: <first>
X-Message-ID-Hash: RXJU4JL6N2OUN3OYMXXPPSCR7P7JE2BW
X-Mailman-Rule-Misses: approved; emergency; loop; administrivia; implicit-dest;
- max-recipients; max-size; news-moderation; no-subject; any
+ max-recipients; max-size; news-moderation; no-subject;
+ suspicious-header
<BLANKLINE>
An important message.
<BLANKLINE>
@@ -334,5 +336,6 @@ hit and all rules that have missed.
>>> sorted(qdata['rule_hits'])
[]
>>> sorted(qdata['rule_misses'])
- ['administrivia', 'any', 'approved', 'emergency', 'implicit-dest', 'loop',
- 'max-recipients', 'max-size', 'news-moderation', 'no-subject']
+ ['administrivia', 'approved', 'emergency', 'implicit-dest', 'loop',
+ 'max-recipients', 'max-size', 'news-moderation', 'no-subject',
+ 'suspicious-header']