summaryrefslogtreecommitdiff
path: root/src/mailman/rules/docs/suspicious.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rules/docs/suspicious.txt')
-rw-r--r--src/mailman/rules/docs/suspicious.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/rules/docs/suspicious.txt b/src/mailman/rules/docs/suspicious.txt
index 190a34aca..79d3eeea5 100644
--- a/src/mailman/rules/docs/suspicious.txt
+++ b/src/mailman/rules/docs/suspicious.txt
@@ -1,3 +1,4 @@
+==================
Suspicious headers
==================
@@ -5,14 +6,14 @@ Suspicious headers are a way for Mailman to hold messages that match a
particular regular expression. This mostly historical feature is fairly
confusing to users, and the list attribute that controls this is misnamed.
- >>> mlist = config.db.list_manager.create(u'_xtest@example.com')
+ >>> mlist = config.db.list_manager.create('_xtest@example.com')
>>> rule = config.rules['suspicious-header']
>>> print rule.name
suspicious-header
Set the so-called suspicious header configuration variable.
- >>> mlist.bounce_matching_headers = u'From: .*person@(blah.)?example.com'
+ >>> mlist.bounce_matching_headers = 'From: .*person@(blah.)?example.com'
>>> msg = message_from_string("""\
... From: aperson@example.com
... To: _xtest@example.com