aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/change_pw7
-rw-r--r--bin/inject15
-rw-r--r--bin/list_admins13
-rw-r--r--bin/list_owners7
4 files changed, 23 insertions, 19 deletions
diff --git a/bin/change_pw b/bin/change_pw
index 1305e1a4..965f5e50 100644
--- a/bin/change_pw
+++ b/bin/change_pw
@@ -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 @@ def main():
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'):
diff --git a/bin/inject b/bin/inject
index cc79f631..432c2922 100644
--- a/bin/inject
+++ b/bin/inject
@@ -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 @@ def main():
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()
diff --git a/bin/list_admins b/bin/list_admins
index c628a42d..b86a5eb8 100644
--- a/bin/list_admins
+++ b/bin/list_admins
@@ -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 @@ def main():
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'):
diff --git a/bin/list_owners b/bin/list_owners
index 5b050450..4c2d908d 100644
--- a/bin/list_owners
+++ b/bin/list_owners
@@ -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 @@ def main():
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: