aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers
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 /Mailman/Handlers
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.
Diffstat (limited to 'Mailman/Handlers')
-rw-r--r--Mailman/Handlers/Moderate.py9
1 files changed, 5 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