From 01468e7eae8d44d740edcf2dbaa2d1575c02c7a7 Mon Sep 17 00:00:00 2001 From: tkikuchi <> Date: Wed, 13 Jul 2005 07:04:09 +0000 Subject: Introduce new attribute (collapse_alternatives) to allow HTML in multipart/alternative message after content filtering. --- Mailman/Gui/ContentFilter.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Mailman/Gui') 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):

After this initial filtering, any multipart attachments that are empty are removed. If the outer message is left empty after this filtering, then the whole message is - discarded. Then, each multipart/alternative section will + discarded. + +

Then, each multipart/alternative section will be replaced by just the first alternative that is non-empty after - filtering. + filtering if + collapse_alternatives is enabled.

Finally, any text/html parts that are left in the message may be converted to text/plain 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 text/html parts to plain text? This conversion happens after MIME attachments have been -- cgit v1.2.3