diff options
| author | bwarsaw | 2001-11-30 08:16:26 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-11-30 08:16:26 +0000 |
| commit | 01fdcf5631cb433037b79f39078fe2ef595fd095 (patch) | |
| tree | 3ff12915a1dfb5e736f4626d77125eee7e282d5b /Mailman/HTMLFormatter.py | |
| parent | dd3a1568a4b63ae99ced2bf8bb2c27646b83b314 (diff) | |
| download | mailman-01fdcf5631cb433037b79f39078fe2ef595fd095.tar.gz mailman-01fdcf5631cb433037b79f39078fe2ef595fd095.tar.zst mailman-01fdcf5631cb433037b79f39078fe2ef595fd095.zip | |
process(): Teach the scrubber about message/rfc822 types, which are
not multipart, but don't contain a string payload. They have a single
Message instance payload so they need to be scrubbed.
I don't know whether what we do is the best thing, but we strip out
the contained message, store it as an attachment (with very little
processing), and include a link/info block of text with the subject,
sender, date, size, and url.
save_attachment(): When calculating an extension for an unknown type,
default to .txt for message/rfc822 types and .bin for everything else.
Also, if we're saving a message/rfc822 type as an attachment, all we
do is take the raw text of the message, cgi.escape() it for safety,
and store it in the attachment file. We could probably do better.
Finally, adjust the baseurl for private archives so we don't get a
double slash.
Diffstat (limited to 'Mailman/HTMLFormatter.py')
0 files changed, 0 insertions, 0 deletions
