diff options
| author | msapiro | 2005-11-28 18:53:39 +0000 |
|---|---|---|
| committer | msapiro | 2005-11-28 18:53:39 +0000 |
| commit | 74d613705cc915f8e856052a5ac77ba3bf876f62 (patch) | |
| tree | 6b6b9a5d154dc77eff314f8e265a601a7b818496 | |
| parent | 98ca03ed785ca20d48bedfa001e92d117bfc0335 (diff) | |
| download | mailman-74d613705cc915f8e856052a5ac77ba3bf876f62.tar.gz mailman-74d613705cc915f8e856052a5ac77ba3bf876f62.tar.zst mailman-74d613705cc915f8e856052a5ac77ba3bf876f62.zip | |
| -rw-r--r-- | Mailman/Handlers/MimeDel.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Mailman/Handlers/MimeDel.py b/Mailman/Handlers/MimeDel.py index 2d5caa64d..cf4ca6e85 100644 --- a/Mailman/Handlers/MimeDel.py +++ b/Mailman/Handlers/MimeDel.py @@ -211,13 +211,9 @@ def to_plaintext(msg): except OSError, e: if e.errno <> errno.ENOENT: raise # Now replace the payload of the subpart and twiddle the Content-Type: + del subpart['content-transfer-encoding'] subpart.set_payload(plaintext) subpart.set_type('text/plain') - try: - # not base64 or quoted-printable any more - subpart.replace_header('content-transfer-encoding', '8bit') - except KeyError: - pass changedp = 1 return changedp |
