Add support for 'numeric' lists names (e.g 2009@faerix.p.org)
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Fri, 5 Nov 2010 20:14:38 +0000 (21:14 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Fri, 5 Nov 2010 20:14:38 +0000 (21:14 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
bin/lists.rpc.py

index 5ce3c68..074c681 100755 (executable)
@@ -244,7 +244,7 @@ def list_call_dispatcher(method, userdesc, perms, vhost, *arg):
         if has_annotation(method, "root") and perms != "admin":
             return 0
         if has_annotation(method, "mlist"):
-            listname = arg[0]
+            listname = str(arg[0])
             arg = arg[1:]
             mlist = MailList.MailList(vhost + VHOST_SEP + listname.lower(), lock=0)
             if has_annotation(method, "admin") and not is_admin_on(userdesc, perms, mlist):