Update of /cvsroot/mailman/mailman/Mailman
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25489

Modified Files:
      Tag: Release_2_1-maint
        Defaults.py.in MailList.py Version.py versions.py 
Log Message:
Introduce new attribute (collapse_alternatives) to allow HTML in
multipart/alternative message after content filtering.


Index: Defaults.py.in
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Defaults.py.in,v
retrieving revision 2.112.2.30
retrieving revision 2.112.2.31
diff -u -d -r2.112.2.30 -r2.112.2.31
--- Defaults.py.in      13 May 2005 02:34:39 -0000      2.112.2.30
+++ Defaults.py.in      13 Jul 2005 07:04:05 -0000      2.112.2.31
@@ -985,6 +985,9 @@
 # passed through. Format is the same as DEFAULT_FILTER_FILENAME_EXTENSIONS.
 DEFAULT_PASS_FILENAME_EXTENSIONS = []
 
+# Replace multipart/alternative with its first alternative.
+DEFAULT_COLLAPSE_ALTERNATIVES = Yes
+
 # Whether text/html should be converted to text/plain after content filtering
 # is performed.  Conversion is done according to HTML_TO_PLAIN_TEXT_COMMAND
 DEFAULT_CONVERT_HTML_TO_PLAINTEXT = Yes

Index: MailList.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/MailList.py,v
retrieving revision 2.100.2.26
retrieving revision 2.100.2.27
diff -u -d -r2.100.2.26 -r2.100.2.27
--- MailList.py 16 Feb 2005 00:21:41 -0000      2.100.2.26
+++ MailList.py 13 Jul 2005 07:04:06 -0000      2.100.2.27
@@ -363,6 +363,7 @@
             mm_cfg.DEFAULT_FILTER_FILENAME_EXTENSIONS
         self.pass_filename_extensions = mm_cfg.DEFAULT_PASS_FILENAME_EXTENSIONS
         self.filter_content = mm_cfg.DEFAULT_FILTER_CONTENT
+        self.collapse_alternatives = mm_cfg.DEFAULT_COLLAPSE_ALTERNATIVES
         self.convert_html_to_plaintext = \
             mm_cfg.DEFAULT_CONVERT_HTML_TO_PLAINTEXT
         self.filter_action = mm_cfg.DEFAULT_FILTER_ACTION

Index: Version.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Version.py,v
retrieving revision 2.51.2.37
retrieving revision 2.51.2.38
diff -u -d -r2.51.2.37 -r2.51.2.38
--- Version.py  31 May 2005 21:55:31 -0000      2.51.2.37
+++ Version.py  13 Jul 2005 07:04:07 -0000      2.51.2.38
@@ -36,7 +36,7 @@
                (REL_LEVEL << 4)  | (REL_SERIAL << 0))
 
 # config.pck schema version number
-DATA_FILE_VERSION = 95
+DATA_FILE_VERSION = 96
 
 # qfile/*.db schema version number
 QFILE_SCHEMA_VERSION = 3

Index: versions.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/versions.py,v
retrieving revision 2.38.2.6
retrieving revision 2.38.2.7
diff -u -d -r2.38.2.6 -r2.38.2.7
--- versions.py 6 Feb 2005 01:29:32 -0000       2.38.2.6
+++ versions.py 13 Jul 2005 07:04:08 -0000      2.38.2.7
@@ -403,6 +403,10 @@
     # automatic discard
     add_only_if_missing('max_days_to_hold', 0)
     add_only_if_missing('nonmember_rejection_notice', '')
+    # multipart/alternative collapse
+    add_only_if_missing('collapse_alternatives', 
+        mm_cfg.DEFAULT_COLLAPSE_ALTERNATIVES)
+
 
 
 

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to