summaryrefslogtreecommitdiff
path: root/src/mailman/rules/docs/header-matching.rst
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rules/docs/header-matching.rst')
-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.