diff options
| author | Barry Warsaw | 2014-12-17 22:08:22 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2014-12-17 22:08:22 -0500 |
| commit | 0274a755a4657bbec652fec29bd868a632eb6c07 (patch) | |
| tree | 56b5e7a1c8603849fbe61b89760507d8a75b6f3c | |
| parent | df8464fdef4b20e136009cf9c0d7bbab7d56748d (diff) | |
| download | mailman-0274a755a4657bbec652fec29bd868a632eb6c07.tar.gz mailman-0274a755a4657bbec652fec29bd868a632eb6c07.tar.zst mailman-0274a755a4657bbec652fec29bd868a632eb6c07.zip | |
Fix subject-munging.rst
| -rw-r--r-- | src/mailman/handlers/docs/subject-munging.rst | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/mailman/handlers/docs/subject-munging.rst b/src/mailman/handlers/docs/subject-munging.rst index 6f70a9d5e..b51fedebd 100644 --- a/src/mailman/handlers/docs/subject-munging.rst +++ b/src/mailman/handlers/docs/subject-munging.rst @@ -122,10 +122,10 @@ set than the encoded header. ... ... """) >>> process(mlist, msg, {}) - >>> print(msg['subject']) + >>> print(msg['subject'].encode()) [XTest] =?iso-2022-jp?b?GyRCJWEhPCVrJV4lcxsoQg==?= - >>> msg['subject'].decode('utf-8') - u'[XTest] \u30e1\u30fc\u30eb\u30de\u30f3' + >>> print(msg['subject']) + [XTest] メールマン Prefix numbers @@ -178,10 +178,10 @@ in the subject prefix, and the subject is encoded non-ASCII. ... ... """) >>> process(mlist, msg, {}) - >>> print(msg['subject']) + >>> print(msg['subject'].encode()) [XTest 456] =?iso-2022-jp?b?GyRCJWEhPCVrJV4lcxsoQg==?= - >>> msg['subject'].decode('utf-8') - u'[XTest 456] \u30e1\u30fc\u30eb\u30de\u30f3' + >>> print(msg['subject']) + [XTest 456] メールマン Even more fun is when the internationalized ``Subject`` header already has a prefix, possibly with a different posting number. @@ -191,11 +191,10 @@ prefix, possibly with a different posting number. ... ... """) >>> process(mlist, msg, {}) - >>> print(msg['subject']) + >>> print(msg['subject'].encode()) [XTest 456] Re: =?iso-2022-jp?b?GyRCJWEhPCVrJV4lcxsoQg==?= - - >>> msg['subject'].decode('utf-8') - u'[XTest 456] Re: \u30e1\u30fc\u30eb\u30de\u30f3' + >>> print(msg['subject']) + [XTest 456] Re: メールマン As before, old style subject prefixes are re-ordered. @@ -204,12 +203,11 @@ As before, old style subject prefixes are re-ordered. ... ... """) >>> process(mlist, msg, {}) - >>> print(msg['subject']) + >>> print(msg['subject'].encode()) [XTest 456] Re: =?iso-2022-jp?b?GyRCJWEhPCVrJV4lcxsoQg==?= - - >>> msg['subject'].decode('utf-8') - u'[XTest 456] Re: \u30e1\u30fc\u30eb\u30de\u30f3' + >>> print(msg['subject']) + [XTest 456] Re: メールマン In this test case, we get an extra space between the prefix and the original |
