diff options
| author | bwarsaw | 2002-08-22 19:09:29 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-08-22 19:09:29 +0000 |
| commit | 2f76c8bbc636cfcb4c9d2855080c63bcffa5ed74 (patch) | |
| tree | 5414dc1ea353fca17f600118e9cc6922fedade15 | |
| parent | f2378be9d7114f344f142360e57ea99f141a1772 (diff) | |
| download | mailman-2f76c8bbc636cfcb4c9d2855080c63bcffa5ed74.tar.gz mailman-2f76c8bbc636cfcb4c9d2855080c63bcffa5ed74.tar.zst mailman-2f76c8bbc636cfcb4c9d2855080c63bcffa5ed74.zip | |
| -rw-r--r-- | Mailman/Handlers/Scrubber.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/Handlers/Scrubber.py b/Mailman/Handlers/Scrubber.py index 440348734..918bd2054 100644 --- a/Mailman/Handlers/Scrubber.py +++ b/Mailman/Handlers/Scrubber.py @@ -133,7 +133,7 @@ URL: %(url)s else: # HTML-escape it and store it as an attachment, but make it # look a /little/ bit prettier. :( - payload = Utils.websafe(part.get_payload()) + payload = Utils.websafe(part.get_payload(decode=1)) # For whitespace in the margin, change spaces into # non-breaking spaces, and tabs into 8 of those. Then use a # mono-space font. Still looks hideous to me, but then I'd @@ -143,6 +143,9 @@ URL: %(url)s lines = [doreplace(s) for s in payload.split('\n')] payload = '<tt>\n' + BR.join(lines) + '\n</tt>\n' part.set_payload(payload) + # We're replacing the payload with the decoded payload so this + # will just get in the way. + del part['content-transfer-encoding'] omask = os.umask(002) try: url = save_attachment(mlist, part, dir, filter_html=0) |
