------------------------------------------------------------
revno: 1566
fixes bug: https://launchpad.net/bugs/1462755
committer: Mark Sapiro <m...@msapiro.net>
branch nick: 2.1
timestamp: Sun 2015-06-07 22:41:05 -0700
message:
  Fixed an issue with shunted messages on a list where the charset for
  the list's preferred_language had been changed from iso-8859-1 to
  utf-8 without recoding the list's description.
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-01-11 22:03:43 +0000
+++ Mailman/Handlers/CookHeaders.py	2015-06-08 05:41:05 +0000
@@ -65,7 +65,12 @@
     else:
         # there is no nonascii so ...
         charset = 'us-ascii'
-    return Header(s, charset, maxlinelen, header_name, continuation_ws)
+    try:
+        return Header(s, charset, maxlinelen, header_name, continuation_ws)
+    except UnicodeError:
+        syslog('error', 'list: %s: can\'t decode "%s" as %s',
+               mlist.internal_name(), s, charset)
+        return Header('', charset, maxlinelen, header_name, continuation_ws)
 
 def change_header(name, value, mlist, msg, msgdata, delete=True, repl=True):
     if ((msgdata.get('from_is_list') == 2 or

=== modified file 'NEWS'
--- NEWS	2015-05-27 15:16:59 +0000
+++ NEWS	2015-06-08 05:41:05 +0000
@@ -14,6 +14,10 @@
 
   Bug fixes and other patches
 
+    - Fixed an issue with shunted messages on a list where the charset for
+      the list's preferred_language had been changed from iso-8859-1 to
+      utf-8 without recoding the list's description.  (LP: #1462755)
+
     - Mailman-Postfix integration will now add mailman@domain entries in
       data/virtual-mailman for each domain in POSTFIX_STYLE_VIRTUAL_DOMAINS
       which is a host_name of a list.  This is so the addresses which are

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

Reply via email to