summaryrefslogtreecommitdiff
path: root/src/mailman/rules/docs
diff options
context:
space:
mode:
authorAurélien Bompard2015-09-11 14:31:41 +0200
committerBarry Warsaw2015-10-20 21:10:34 -0400
commited772e4fe2296460f0261a114b4f4eea3b318d6a (patch)
treee78a664f584f4bca025ee5e4e16b6efceb0b3687 /src/mailman/rules/docs
parent583a7639eb78dc52cf899076fef777e303101567 (diff)
downloadmailman-ed772e4fe2296460f0261a114b4f4eea3b318d6a.tar.gz
mailman-ed772e4fe2296460f0261a114b4f4eea3b318d6a.tar.zst
mailman-ed772e4fe2296460f0261a114b4f4eea3b318d6a.zip
Diffstat (limited to 'src/mailman/rules/docs')
-rw-r--r--src/mailman/rules/docs/header-matching.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mailman/rules/docs/header-matching.rst b/src/mailman/rules/docs/header-matching.rst
index 3c175e6e1..7b2d8c6d7 100644
--- a/src/mailman/rules/docs/header-matching.rst
+++ b/src/mailman/rules/docs/header-matching.rst
@@ -125,7 +125,10 @@ with the same semantics as the global `[antispam]` section.
The list administrator wants to match not on four stars, but on three plus
signs, but only for the current mailing list.
- >>> mlist.header_matches = [('x-spam-score', '[+]{3,}')]
+ >>> from mailman.model.mailinglist import HeaderMatch
+ >>> mlist.header_matches = [
+ ... HeaderMatch(header='x-spam-score', pattern='[+]{3,}')
+ ... ]
A message with a spam score of two pluses does not match.