diff options
Diffstat (limited to 'src/mailman/rules/docs/max-size.txt')
| -rw-r--r-- | src/mailman/rules/docs/max-size.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mailman/rules/docs/max-size.txt b/src/mailman/rules/docs/max-size.txt index 117691e59..a34c98627 100644 --- a/src/mailman/rules/docs/max-size.txt +++ b/src/mailman/rules/docs/max-size.txt @@ -1,3 +1,4 @@ +============ Message size ============ @@ -6,7 +7,7 @@ specified maximum. Generally this is used to prevent huge attachments from getting posted to the list. This value is calculated in terms of KB (1024 bytes). - >>> mlist = config.db.list_manager.create(u'_xtest@example.com') + >>> mlist = config.db.list_manager.create('_xtest@example.com') >>> rule = config.rules['max-size'] >>> print rule.name max-size @@ -15,8 +16,8 @@ For example, setting the maximum message size to 1 means that any message bigger than that will match the rule. >>> mlist.max_message_size = 1 # 1024 bytes - >>> one_line = u'x' * 79 - >>> big_body = u'\n'.join([one_line] * 15) + >>> one_line = 'x' * 79 + >>> big_body = '\n'.join([one_line] * 15) >>> msg = message_from_string("""\ ... From: aperson@example.com ... To: _xtest@example.com |
