------------------------------------------------------------
revno: 1274
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Mon 2011-01-24 17:16:17 -0800
message:
   @listname entries in *_these_nonmembers are no longer case sensitive.
   Bug #705715.
modified:
  Mailman/Handlers/Moderate.py
  NEWS


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Handlers/Moderate.py'
--- Mailman/Handlers/Moderate.py	2008-03-16 05:09:31 +0000
+++ Mailman/Handlers/Moderate.py	2011-01-25 01:16:17 +0000
@@ -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 @@
         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
 
 

=== modified file 'NEWS'
--- NEWS	2011-01-14 02:06:17 +0000
+++ NEWS	2011-01-25 01:16:17 +0000
@@ -13,6 +13,9 @@
 
   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.
 

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to