tags 446257 patch forwarded 446257 http://sf.net/support/tracker.php?aid=1842412 thanks
On Thursday 11 October 2007 15:14, Philip Hands wrote: > Package: mailman > Version: 1:2.1.9-7 > Severity: minor > > > ... as demonstrated here: > > [EMAIL PROTECTED]:~# list_lists | grep -i skiing > Skiing - Phil's skiing holiday coordination list > [EMAIL PROTECTED]:~# list_admins Skiing > No such list: Skiing Thanks, I've sent the attached patch to upstream. Thijs
diff -u bin.old/change_pw bin/change_pw
--- bin.old/change_pw 2005-08-27 03:40:17.000000000 +0200
+++ bin/change_pw 2007-12-01 19:41:35.000000000 +0100
@@ -98,6 +98,7 @@
def openlist(listname):
missing = []
+ listname = listname.lower().strip()
mlist = _listcache.get(listname, missing)
if mlist is missing:
try:
diff -u bin.old/inject bin/inject
--- bin.old/inject 2005-08-27 03:40:17.000000000 +0200
+++ bin/inject 2007-12-01 19:43:02.000000000 +0100
@@ -82,7 +82,7 @@
if not os.path.isdir(qdir):
usage(1, _('Bad queue directory: %(qdir)s'))
elif opt in ('-l', '--listname'):
- listname = arg
+ listname = arg.lower()
if listname is None:
usage(1, _('A list name is required'))
diff -u bin.old/list_admins bin/list_admins
--- bin.old/list_admins 2005-08-27 03:40:17.000000000 +0200
+++ bin/list_admins 2007-12-01 19:44:07.000000000 +0100
@@ -83,6 +83,7 @@
vhost = arg
for listname in listnames:
+ listname = listname.lower().strip()
try:
mlist = MailList.MailList(listname, lock=0)
except Errors.MMListError, e:
diff -u bin.old/list_owners bin/list_owners
--- bin.old/list_owners 2005-08-27 03:40:17.000000000 +0200
+++ bin/list_owners 2007-12-01 19:43:52.000000000 +0100
@@ -88,6 +88,7 @@
bylist = {}
for listname in listnames:
+ listname = listname.lower().strip()
mlist = MailList(listname, lock=0)
addrs = mlist.owner[:]
if moderators:
@@ -96,6 +97,7 @@
if withnames:
for listname in listnames:
+ listname = listname.lower().strip()
unique = {}
for addr in bylist[listname]:
unique[addr] = 1
@@ -107,6 +109,7 @@
else:
unique = {}
for listname in listnames:
+ listname = listname.lower().strip()
for addr in bylist[listname]:
unique[addr] = 1
keys = unique.keys()
pgpB1fgpyFehh.pgp
Description: PGP signature

