summaryrefslogtreecommitdiff
path: root/src/mailman/rules/docs/loop.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rules/docs/loop.txt')
-rw-r--r--src/mailman/rules/docs/loop.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/rules/docs/loop.txt b/src/mailman/rules/docs/loop.txt
index 61612cd75..5015d3d95 100644
--- a/src/mailman/rules/docs/loop.txt
+++ b/src/mailman/rules/docs/loop.txt
@@ -1,10 +1,11 @@
+=============
Posting loops
=============
To avoid a posting loop, Mailman has a rule to check for the existence of an
X-BeenThere header with the value of the list's posting address.
- >>> mlist = config.db.list_manager.create(u'_xtest@example.com')
+ >>> mlist = config.db.list_manager.create('_xtest@example.com')
>>> rule = config.rules['loop']
>>> print rule.name
loop
@@ -21,7 +22,7 @@ The header could be missing, in which case the rule does not match.
The header could be present, but not match the list's posting address.
- >>> msg['X-BeenThere'] = u'not-this-list@example.com'
+ >>> msg['X-BeenThere'] = 'not-this-list@example.com'
>>> rule.check(mlist, msg, {})
False