------------------------------------------------------------
revno: 1583
fixes bug: https://launchpad.net/bugs/1505878
committer: Mark Sapiro <m...@msapiro.net>
branch nick: 2.1
timestamp: Wed 2015-10-14 09:42:19 -0700
message:
  hanged CookHeaders to default to using space rather than tab as
  continuation_ws when folding headers.
modified:
  Mailman/Handlers/CookHeaders.py
  NEWS


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Handlers/CookHeaders.py'
--- Mailman/Handlers/CookHeaders.py	2015-09-17 02:52:18 +0000
+++ Mailman/Handlers/CookHeaders.py	2015-10-14 16:42:19 +0000
@@ -34,7 +34,7 @@
 from Mailman.i18n import _
 from Mailman.Logging.Syslog import syslog
 
-CONTINUATION = ',\n\t'
+CONTINUATION = ',\n '
 COMMASPACE = ', '
 MAXLINELEN = 78
 
@@ -52,7 +52,7 @@
 
 nonascii = re.compile('[^\s!-~]')
 
-def uheader(mlist, s, header_name=None, continuation_ws='\t', maxlinelen=None):
+def uheader(mlist, s, header_name=None, continuation_ws=' ', maxlinelen=None):
     # Get the charset to encode the string in. Then search if there is any
     # non-ascii character is in the string. If there is and the charset is
     # us-ascii then we use iso-8859-1 instead. If the string is ascii only
@@ -350,7 +350,7 @@
         lines = str(subject).splitlines()
     else:
         lines = subject.splitlines()
-    ws = '\t'
+    ws = ' '
     if len(lines) > 1 and lines[1] and lines[1][0] in ' \t':
         ws = lines[1][0]
     msgdata['origsubj'] = subject

=== modified file 'NEWS'
--- NEWS	2015-10-06 20:29:35 +0000
+++ NEWS	2015-10-14 16:42:19 +0000
@@ -22,6 +22,9 @@
 
   Bug fixes and other patches
 
+    - Changed CookHeaders to default to using space rather than tab as
+      continuation_ws when folding headers.  (LP: #1505878)
+
     - Fixed the 'pidfile' path in the sample init.d script.  (LP: # 1503422)
 
     - Subject prefixing could fail to collapse multiple 'Re:' in an incomming

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to