summaryrefslogtreecommitdiff
path: root/src/mailman/rules/docs
diff options
context:
space:
mode:
authorBarry Warsaw2016-01-25 14:59:36 -0500
committerBarry Warsaw2016-01-25 14:59:36 -0500
commitd063ee4dd4579ca931e36f0761084e4ab7cd0335 (patch)
treee1ee71db22560274a82a68dd082f35ee0d5ad3ee /src/mailman/rules/docs
parent471851bab74874f02de08d71a3c1256c3ec6390d (diff)
downloadmailman-d063ee4dd4579ca931e36f0761084e4ab7cd0335.tar.gz
mailman-d063ee4dd4579ca931e36f0761084e4ab7cd0335.tar.zst
mailman-d063ee4dd4579ca931e36f0761084e4ab7cd0335.zip
Diffstat (limited to 'src/mailman/rules/docs')
-rw-r--r--src/mailman/rules/docs/header-matching.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/rules/docs/header-matching.rst b/src/mailman/rules/docs/header-matching.rst
index 2eb8d9bdf..6618d9cc9 100644
--- a/src/mailman/rules/docs/header-matching.rst
+++ b/src/mailman/rules/docs/header-matching.rst
@@ -39,7 +39,7 @@ through the chain with no matches.
... print('Rule hits:')
... for rule_name in hits:
... rule = config.rules[rule_name]
- ... print(' {0}: {1}'.format(rule.header, rule.pattern))
+ ... print(' {}: {}'.format(rule.header, rule.pattern))
... misses = msgdata.get('rule_misses', [])
... if len(misses) == 0:
... print('No rules missed')
@@ -47,7 +47,7 @@ through the chain with no matches.
... print('Rule misses:')
... for rule_name in misses:
... rule = config.rules[rule_name]
- ... print(' {0}: {1}'.format(rule.header, rule.pattern))
+ ... print(' {}: {}'.format(rule.header, rule.pattern))
By looking at the message metadata after chain processing, we can see that
none of the rules matched.