diff options
author | Mark Sapiro <msapiro@value.net> | 2011-01-24 17:16:17 -0800 |
---|---|---|
committer | Mark Sapiro <msapiro@value.net> | 2011-01-24 17:16:17 -0800 |
commit | d69ae8ee3d08ed80866fbdca36961086f061fd9c (patch) | |
tree | dd4b20429725ca8d96ab44fce7bdb56f328e81fc | |
parent | 9a24b9c921ff82322db44d150becce00b8fb76d0 (diff) | |
download | mailman2-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.py | 9 | ||||
-rw-r--r-- | NEWS | 3 |
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 @@ -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. |