[Pkg-mailman-hackers] Pkg-mailman commit - rev 225 - in trunk/debian: . patches

Lionel Elie Mamane lmamane-guest at costa.debian.org
Sun Nov 13 23:54:40 UTC 2005


Author: lmamane-guest
Date: 2005-11-13 23:54:39 +0000 (Sun, 13 Nov 2005)
New Revision: 225

Added:
   trunk/debian/patches/74_admin_non-ascii_emails.dpatch
Modified:
   trunk/debian/changelog
Log:
Tentative untested fix for #315358


Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2005-11-13 17:18:49 UTC (rev 224)
+++ trunk/debian/changelog	2005-11-13 23:54:39 UTC (rev 225)
@@ -7,8 +7,10 @@
   * Don't die on overflow in date handling (closes: #326024)
   * Enable error handling in HyperArch (closes: #310451)
   * Ensure list-id is always in brackets in headers
+  * Admin page: don't assume subscribed emails are pure ASCII
+    (closes: #315358)
 
- -- Lionel Elie Mamane <lmamane at debian.org>  Sun, 13 Nov 2005 18:17:45 +0100
+ -- Lionel Elie Mamane <lmamane at debian.org>  Mon, 14 Nov 2005 00:53:38 +0100
 
 mailman (2.1.5-9) unstable; urgency=medium
 

Added: trunk/debian/patches/74_admin_non-ascii_emails.dpatch
===================================================================
--- trunk/debian/patches/74_admin_non-ascii_emails.dpatch	2005-11-13 17:18:49 UTC (rev 224)
+++ trunk/debian/patches/74_admin_non-ascii_emails.dpatch	2005-11-13 23:54:39 UTC (rev 225)
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 74_admin_non-ascii_emails.dpatch by  <lionel at mamane.lu>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Don't assume emails are ASCII
+
+ at DPATCH@
+diff -urNad mailman-2.1.5~/Mailman/Cgi/admin.py mailman-2.1.5/Mailman/Cgi/admin.py
+--- mailman-2.1.5~/Mailman/Cgi/admin.py	2003-12-24 18:27:45.000000000 +0100
++++ mailman-2.1.5/Mailman/Cgi/admin.py	2005-11-14 00:51:45.409005398 +0100
+@@ -867,7 +867,7 @@
+     chunksz = mlist.admin_member_chunksize
+     # The email addresses had /better/ be ASCII, but might be encoded in the
+     # database as Unicodes.
+-    all = [_m.encode() for _m in mlist.getMembers()]
++    all = mlist.getMembers()
+     all.sort(lambda x, y: cmp(x.lower(), y.lower()))
+     # See if the query has a regular expression
+     regexp = cgidata.getvalue('findmember', '').strip()


Property changes on: trunk/debian/patches/74_admin_non-ascii_emails.dpatch
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-mailman-hackers mailing list