Update of /cvsroot/mailman/mailman/Mailman/Handlers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25489/Handlers
Modified Files:
Tag: Release_2_1-maint
MimeDel.py
Log Message:
Introduce new attribute (collapse_alternatives) to allow HTML in
multipart/alternative message after content filtering.
Index: MimeDel.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/MimeDel.py,v
retrieving revision 2.5.2.1
retrieving revision 2.5.2.2
diff -u -d -r2.5.2.1 -r2.5.2.2
--- MimeDel.py 3 Oct 2004 06:00:32 -0000 2.5.2.1
+++ MimeDel.py 13 Jul 2005 07:04:09 -0000 2.5.2.2
@@ -90,10 +90,12 @@
# headers. For now we'll move the subpart's payload into the outer part,
# and then copy over its Content-Type: and Content-Transfer-Encoding:
# headers (any others?).
- collapse_multipart_alternatives(msg)
- if ctype == 'multipart/alternative':
- firstalt = msg.get_payload(0)
- reset_payload(msg, firstalt)
+ # TK: Make this configurable from Gui/ContentFilter.py.
+ if mlist.collapse_alternatives:
+ collapse_multipart_alternatives(msg)
+ if ctype == 'multipart/alternative':
+ firstalt = msg.get_payload(0)
+ reset_payload(msg, firstalt)
# If we removed some parts, make note of this
changedp = 0
if numparts <> len([subpart for subpart in msg.walk()]):
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org