diff options
author | tkikuchi <> | 2005-07-13 07:04:09 +0000 |
---|---|---|
committer | tkikuchi <> | 2005-07-13 07:04:09 +0000 |
commit | 01468e7eae8d44d740edcf2dbaa2d1575c02c7a7 (patch) | |
tree | f97fc85a36ad697da873287db5a43b933bf828e3 /Mailman/Gui | |
parent | 31559396f740d6c2bea564db473776e48b5f1b61 (diff) | |
download | mailman2-01468e7eae8d44d740edcf2dbaa2d1575c02c7a7.tar.gz mailman2-01468e7eae8d44d740edcf2dbaa2d1575c02c7a7.tar.xz mailman2-01468e7eae8d44d740edcf2dbaa2d1575c02c7a7.zip |
Introduce new attribute (collapse_alternatives) to allow HTML in
multipart/alternative message after content filtering.
Diffstat (limited to 'Mailman/Gui')
-rw-r--r-- | Mailman/Gui/ContentFilter.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Mailman/Gui/ContentFilter.py b/Mailman/Gui/ContentFilter.py index d681d6df..401ecf9f 100644 --- a/Mailman/Gui/ContentFilter.py +++ b/Mailman/Gui/ContentFilter.py @@ -57,9 +57,13 @@ class ContentFilter(GUIBase): <p>After this initial filtering, any <tt>multipart</tt> attachments that are empty are removed. If the outer message is left empty after this filtering, then the whole message is - discarded. Then, each <tt>multipart/alternative</tt> section will + discarded. + + <p> Then, each <tt>multipart/alternative</tt> section will be replaced by just the first alternative that is non-empty after - filtering. + filtering if + <a href="?VARHELP=contentfilter/collapse_alternatives" + >collapse_alternatives</a> is enabled. <p>Finally, any <tt>text/html</tt> parts that are left in the message may be converted to <tt>text/plain</tt> if @@ -109,6 +113,10 @@ class ContentFilter(GUIBase): filename extension. Leave this field blank to skip this filter test."""),), + ('collapse_alternatives', mm_cfg.Radio, (_('No'), _('Yes')), 0, + _("""Should Mailman collapse multipart/alternative to its + first part content?""")), + ('convert_html_to_plaintext', mm_cfg.Radio, (_('No'), _('Yes')), 0, _("""Should Mailman convert <tt>text/html</tt> parts to plain text? This conversion happens after MIME attachments have been |