From: x2000habouzit Date: Wed, 10 Nov 2004 09:36:28 +0000 (+0000) Subject: better creation of non lowercased lists X-Git-Tag: xorg/old~998 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e6b0ee66ddf1fab243a1853d480b7e0d4c2243cd;p=platal.git better creation of non lowercased lists --- diff --git a/scripts/mailman/mailman-rpc.py b/scripts/mailman/mailman-rpc.py index 0724482..6730d80 100755 --- a/scripts/mailman/mailman-rpc.py +++ b/scripts/mailman/mailman-rpc.py @@ -18,7 +18,7 @@ #* Foundation, Inc., * #* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * #*************************************************************************** -# $Id: mailman-rpc.py,v 1.72 2004-11-09 18:20:06 x2000habouzit Exp $ +# $Id: mailman-rpc.py,v 1.73 2004-11-10 09:36:28 x2000habouzit Exp $ #*************************************************************************** import base64, MySQLdb, os, getopt, sys, MySQLdb.converters, sha, signal @@ -674,7 +674,7 @@ def check_options((userdesc,perms),vhost,listname,correct=False): if mlist.__dict__[k] != v: options[k] = v,mlist.__dict__[k] if correct: mlist.__dict__[k] = v - if mlist.real_name != listname: + if mlist.real_name.lower() != listname: options['real_name'] = listname, mlist.real_name if correct: mlist.real_name = listname if mlist.host_name != vhost: @@ -752,9 +752,9 @@ def create_list((userdesc,perms),vhost,listname,desc,advertise,modlevel,inslevel mlist.Save() mlist.Unlock() - - check_options((userdesc,perms),vhost,listname,True) - mass_subscribe((userdesc,perms),vhost,listname,members) + + check_options((userdesc,perms),vhost,listname.lower(),True) + mass_subscribe((userdesc,perms),vhost,listname.lower(),members) # avoid the "-1 mail to moderate" bug mlist = MailList.MailList(name)