------------------------------------------------------------
revno: 1026
committer: Mark Sapiro <[EMAIL PROTECTED]>
branch nick: 2.1
timestamp: Tue 2007-12-04 11:42:54 -0800
message:
Forced lower case listnames in a few command line tools
modified:
bin/change_pw
bin/inject
bin/list_admins
bin/list_owners
=== modified file 'bin/change_pw'
--- a/bin/change_pw 2005-08-27 01:40:17 +0000
+++ b/bin/change_pw 2007-12-04 19:42:54 +0000
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 2001-2004 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2007 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
@@ -14,7 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
"""Change a list's password.
@@ -133,7 +134,7 @@
elif opt in ('-d', '--domain'):
domains[arg] = 1
elif opt in ('-l', '--listname'):
- listnames[arg] = 1
+ listnames[arg.lower()] = 1
elif opt in ('-p', '--password'):
password = arg
elif opt in ('-q', '--quiet'):
=== modified file 'bin/inject'
--- a/bin/inject 2005-08-27 01:40:17 +0000
+++ b/bin/inject 2007-12-04 19:42:54 +0000
@@ -1,20 +1,21 @@
#! @PYTHON@
#
-# Copyright (C) 2002 by the Free Software Foundation, Inc.
+# Copyright (C) 2002-2007 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
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
USA.
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
"""Inject a message from a file into Mailman's incoming queue.
@@ -82,13 +83,13 @@
if not os.path.isdir(qdir):
usage(1, _('Bad queue directory: %(qdir)s'))
elif opt in ('-l', '--listname'):
- listname = arg
+ listname = arg.lower()
if listname is None:
usage(1, _('A list name is required'))
elif not Utils.list_exists(listname):
usage(1, _('No such list: %(listname)s'))
-
+
if len(args) == 0:
# Use standard input
msgtext = sys.stdin.read()
=== modified file 'bin/list_admins'
--- a/bin/list_admins 2005-08-27 01:40:17 +0000
+++ b/bin/list_admins 2007-12-04 19:42:54 +0000
@@ -1,20 +1,21 @@
#! @PYTHON@
#
-# Copyright (C) 2001,2002 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2007 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
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
USA.
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
"""List all the owners of a mailing list.
@@ -71,7 +72,7 @@
except getopt.error, msg:
usage(1, msg)
- listnames = args
+ listnames = [x.lower() for x in args]
vhost = None
for opt, arg in opts:
if opt in ('-h', '--help'):
=== modified file 'bin/list_owners'
--- a/bin/list_owners 2005-08-27 01:40:17 +0000
+++ b/bin/list_owners 2007-12-04 19:42:54 +0000
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 2002 by the Free Software Foundation, Inc.
+# Copyright (C) 2002-2007 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
@@ -14,7 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
"""List the owners of a mailing list, or all mailing lists.
@@ -84,7 +85,7 @@
elif opt in ('-w', '--with-listnames'):
withnames = True
- listnames = args or Utils.list_names()
+ listnames = [x.lower() for x in args] or Utils.list_names()
bylist = {}
for listname in listnames:
--
https://code.launchpad.net/~mailman-coders/mailman/2.1
You are receiving this branch notification because you are subscribed to it.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.1/+subscription/mailman-checkins.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org