From d69ae8ee3d08ed80866fbdca36961086f061fd9c Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Mon, 24 Jan 2011 17:16:17 -0800 Subject: @listname entries in *_these_nonmembers are no longer case sensitive. Bug #705715. --- Mailman/Handlers/Moderate.py | 9 +++++---- 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 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. -- cgit v1.2.3