diff options
Diffstat (limited to 'src/mailman/rules/docs/loop.txt')
| -rw-r--r-- | src/mailman/rules/docs/loop.txt | 5 |
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 |
