summaryrefslogtreecommitdiff
path: root/src/mailman/rules/docs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rules/docs')
-rw-r--r--src/mailman/rules/docs/header-matching.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mailman/rules/docs/header-matching.rst b/src/mailman/rules/docs/header-matching.rst
index a4d539291..4e6c0853d 100644
--- a/src/mailman/rules/docs/header-matching.rst
+++ b/src/mailman/rules/docs/header-matching.rst
@@ -177,9 +177,8 @@ 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,}', Action.discard)
+ >>> header_matches.append('x-spam-score', '[+]{3,}', 'discard')
A message with a spam score of three pluses will still match, and the message
will be discarded.