Update of /cvsroot/mailman/mailman/Mailman/Gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25489/Gui
Modified Files:
Tag: Release_2_1-maint
ContentFilter.py
Log Message:
Introduce new attribute (collapse_alternatives) to allow HTML in
multipart/alternative message after content filtering.
Index: ContentFilter.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Gui/ContentFilter.py,v
retrieving revision 2.6.2.1
retrieving revision 2.6.2.2
diff -u -d -r2.6.2.1 -r2.6.2.2
--- ContentFilter.py 3 Oct 2004 06:00:32 -0000 2.6.2.1
+++ ContentFilter.py 13 Jul 2005 07:04:08 -0000 2.6.2.2
@@ -57,9 +57,13 @@
<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 @@
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
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org