summaryrefslogtreecommitdiff
path: root/src/mailman/rules/docs
diff options
context:
space:
mode:
authorAurélien Bompard2016-02-02 18:10:18 +0100
committerBarry Warsaw2016-02-29 21:52:13 -0500
commit994660913bbd7dc08b8cef909b6715f43d37f0d5 (patch)
treed17930b6d325f2d785883dc17ea71cf6eaef848f /src/mailman/rules/docs
parent9bf90986117e39450ec5bf1f86d29e5ed91f480d (diff)
downloadmailman-994660913bbd7dc08b8cef909b6715f43d37f0d5.tar.gz
mailman-994660913bbd7dc08b8cef909b6715f43d37f0d5.tar.zst
mailman-994660913bbd7dc08b8cef909b6715f43d37f0d5.zip
Rename the HeaderMatch.chain column to action
It makes it clearer what values are valid, and allows validation.
Diffstat (limited to 'src/mailman/rules/docs')
-rw-r--r--src/mailman/rules/docs/header-matching.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/rules/docs/header-matching.rst b/src/mailman/rules/docs/header-matching.rst
index 4e6c0853d..a4d539291 100644
--- a/src/mailman/rules/docs/header-matching.rst
+++ b/src/mailman/rules/docs/header-matching.rst
@@ -177,8 +177,9 @@ As does a message with a spam score of four pluses.
Now, the list administrator wants to match on three plus signs, but wants
those emails to be discarded instead of held.
+ >>> from mailman.interfaces.action import Action
>>> header_matches.remove('x-spam-score', '[+]{3,}')
- >>> header_matches.append('x-spam-score', '[+]{3,}', 'discard')
+ >>> header_matches.append('x-spam-score', '[+]{3,}', Action.discard)
A message with a spam score of three pluses will still match, and the message
will be discarded.