summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/edithtml.py
diff options
context:
space:
mode:
authorbwarsaw2001-10-26 22:05:23 +0000
committerbwarsaw2001-10-26 22:05:23 +0000
commit463431ea0dfbeb1c3d0df192a68d93d84ca65a9a (patch)
tree01d0db9175b6624cb2c23af2cdc395c3e6710d85 /Mailman/Cgi/edithtml.py
parentd0ad817a50ca2cb351a7f07e31717b507cd06b56 (diff)
downloadmailman-463431ea0dfbeb1c3d0df192a68d93d84ca65a9a.tar.gz
mailman-463431ea0dfbeb1c3d0df192a68d93d84ca65a9a.tar.zst
mailman-463431ea0dfbeb1c3d0df192a68d93d84ca65a9a.zip
Much revision based on good feedback from mailman-developers.
Specifically, process(): Instead of a blanket discard of text/html parts, what we do depends on the value for ARCHIVE_HTML_SANITIZER. Also, the "scrubbed" message now includes the value of get_filename() if available. save_attachment(): Several refinements including: all of a message's attachments are stored in a subdirectory off archives/private/mylist/attachments. This subdir is calculated based on the SHA1 hash of the Message-ID: We store the attachment in a file based on the name of the get_filename() value, sanitize for nasty characters, absolute paths, etc. The filename is uniquified within the message's attachments subdir. This function also knows about text/html and performs filtering when ARCHIVE_HTML_SANITIZER is a program string. Note that currently, we assume that this program will filter html into plain text, so we change the attachment's suffix to .txt accordingly. We don't need the attachments.pck file anymore.
Diffstat (limited to 'Mailman/Cgi/edithtml.py')
0 files changed, 0 insertions, 0 deletions