aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2011-01-24 17:16:17 -0800
committerMark Sapiro <msapiro@value.net>2011-01-24 17:16:17 -0800
commitd69ae8ee3d08ed80866fbdca36961086f061fd9c (patch)
treedd4b20429725ca8d96ab44fce7bdb56f328e81fc
parent9a24b9c921ff82322db44d150becce00b8fb76d0 (diff)
downloadmailman2-d69ae8ee3d08ed80866fbdca36961086f061fd9c.tar.gz
mailman2-d69ae8ee3d08ed80866fbdca36961086f061fd9c.tar.xz
mailman2-d69ae8ee3d08ed80866fbdca36961086f061fd9c.zip
@listname entries in *_these_nonmembers are no longer case sensitive.
Bug #705715.
-rw-r--r--Mailman/Handlers/Moderate.py9
-rw-r--r--NEWS3
2 files changed, 8 insertions, 4 deletions
diff --git a/Mailman/Handlers/Moderate.py b/Mailman/Handlers/Moderate.py
index a362d960..199c97ac 100644
--- a/Mailman/Handlers/Moderate.py
+++ b/Mailman/Handlers/Moderate.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2008 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2011 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -136,19 +136,20 @@ def matches_p(sender, nonmembers, listname):
elif are.startswith('@'):
# XXX Needs to be reviewed for list@domain names.
try:
- if are[1:] == listname:
+ mname = are[1:].lower().strip()
+ if mname == listname:
# don't reference your own list
syslog('error',
'*_these_nonmembers in %s references own list',
listname)
else:
- mother = MailList(are[1:], lock=0)
+ mother = MailList(mname, lock=0)
if mother.isMember(sender):
return 1
except Errors.MMUnknownListError:
syslog('error',
'*_these_nonmembers in %s references non-existent list %s',
- listname, are[1:])
+ listname, mname)
return 0
diff --git a/NEWS b/NEWS
index ec5cc326..e64e4761 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,9 @@ Here is a history of user visible changes to Mailman.
Bug Fixes and other patches
+ - @listname entries in *_these_nonmembers are no longer case sensitive.
+ Bug #705715.
+
- Changed bin/rmlist to also remove heldmsg files for the removed list and
fixed a problem with removal of stale locks for the list. Bug #700528.