summaryrefslogtreecommitdiff
path: root/Mailman
diff options
context:
space:
mode:
authorbwarsaw2001-10-27 18:47:53 +0000
committerbwarsaw2001-10-27 18:47:53 +0000
commit146abed36ddb8259d8734c1af6ab3902afad2c7e (patch)
tree479ff1a49144c11db03c20a29ca474ebf3cb8cbf /Mailman
parentde73326e6bc721a6180c1bb55cbf9aee384c8a10 (diff)
downloadmailman-146abed36ddb8259d8734c1af6ab3902afad2c7e.tar.gz
mailman-146abed36ddb8259d8734c1af6ab3902afad2c7e.tar.zst
mailman-146abed36ddb8259d8734c1af6ab3902afad2c7e.zip
ARCHIVE_HTML_SANITIZER can now take a value == 3 for removing
text/html as attachments and not HTML-escaping them. (The obvious == 4 value isn't possible given Pipermail's current implementation).
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Defaults.py.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in
index 0385f2c44..df1766fe6 100644
--- a/Mailman/Defaults.py.in
+++ b/Mailman/Defaults.py.in
@@ -205,6 +205,16 @@ ARCHIVE_SCRUBBER = 'Mailman.Handlers.Scrubber'
# attachments which can be separately viewed. Outer text/html parts are
# simply HTML-escaped.
# 2 - Leave it inline, but HTML-escape it
+# 3 - Remove text/html as attachments but don't HTML-escape them. Note: this
+# is very dangerous because it essentially means anybody can send an HTML
+# email to your site containing evil JavaScript or web bugs, or other
+# nasty things, and folks viewing your archives will be susceptible. You
+# should only consider this option if you do heavy moderation of your list
+# postings.
+#
+# Note: given the current archiving code, it is not possible to leave
+# text/html parts inline and un-escaped. I wouldn't think it'd be a good idea
+# to do anyway.
#
# The value can also be a string, in which case it is the name of a command to
# filter the HTML page through. The resulting output is left in an attachment