diff options
| author | Barry Warsaw | 2007-11-07 20:56:43 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2007-11-07 20:56:43 -0500 |
| commit | 38e50b70ca523bd02f038db2d71da0277f8ee0aa (patch) | |
| tree | 7c76f652c8ba05873fa1fe19d20a09288c27fc01 /Mailman/docs/cleanse.txt | |
| parent | 1d4fe92ee5e739a40c88ad4221675de4485f653c (diff) | |
| download | mailman-38e50b70ca523bd02f038db2d71da0277f8ee0aa.tar.gz mailman-38e50b70ca523bd02f038db2d71da0277f8ee0aa.tar.zst mailman-38e50b70ca523bd02f038db2d71da0277f8ee0aa.zip | |
Fix two more doctests
Diffstat (limited to 'Mailman/docs/cleanse.txt')
| -rw-r--r-- | Mailman/docs/cleanse.txt | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Mailman/docs/cleanse.txt b/Mailman/docs/cleanse.txt index ce0a69b23..ecf452788 100644 --- a/Mailman/docs/cleanse.txt +++ b/Mailman/docs/cleanse.txt @@ -5,13 +5,9 @@ All messages posted to a list get their headers cleansed. Some headers are related to additional permissions that can be granted to the message and other headers can be used to fish for membership. - >>> from email import message_from_string - >>> from Mailman.Message import Message >>> from Mailman.Handlers.Cleanse import process >>> from Mailman.configuration import config - >>> from Mailman.database import flush >>> mlist = config.db.list_manager.create('_xtest@example.com') - >>> flush() Headers such as Approved, Approve, and Urgent are used to grant special pemissions to individual messages. All may contain a password; the first two @@ -28,7 +24,7 @@ headers contain passwords, they must be removed from any posted message. ... Subject: A message of great import ... ... Blah blah blah - ... """, Message) + ... """) >>> process(mlist, msg, {}) >>> print msg.as_string() From: aperson@example.com @@ -54,7 +50,7 @@ Pegasus mail. I don't remember what program uses X-Confirm-Reading-To though ... Subject: a message to you ... ... How are you doing? - ... """, Message) + ... """) >>> process(mlist, msg, {}) >>> print msg.as_string() From: bperson@example.com @@ -80,7 +76,6 @@ Hotmail apparently sets X-Originating-Email. >>> mlist.anonymous_list = True >>> mlist.description = u'A Test Mailing List' >>> mlist.preferred_language = u'en' - >>> flush() >>> msg = message_from_string("""\ ... From: bperson@example.com ... Reply-To: bperson@example.org @@ -89,7 +84,7 @@ Hotmail apparently sets X-Originating-Email. ... Subject: a message to you ... ... How are you doing? - ... """, Message) + ... """) >>> process(mlist, msg, {}) >>> print msg.as_string() Subject: a message to you |
