diff options
author | Mark Sapiro <mark@msapiro.net> | 2008-03-19 20:07:51 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2008-03-19 20:07:51 -0700 |
commit | 8cea3dc5a5294e09aa687ef119c2856e2dd495d5 (patch) | |
tree | dedc6bc9c87998c0f47c03fc73834688098ad668 | |
parent | 1be785a563753165ced2715619c2a795618e733f (diff) | |
download | mailman2-8cea3dc5a5294e09aa687ef119c2856e2dd495d5.tar.gz mailman2-8cea3dc5a5294e09aa687ef119c2856e2dd495d5.tar.xz mailman2-8cea3dc5a5294e09aa687ef119c2856e2dd495d5.zip |
cmd_subscribe.py - Changed to properly accept (no)digest without a password
and to recognize (no)digest and address= case insensitively.
-rw-r--r-- | Mailman/Commands/cmd_subscribe.py | 11 | ||||
-rw-r--r-- | NEWS | 3 |
2 files changed, 12 insertions, 2 deletions
diff --git a/Mailman/Commands/cmd_subscribe.py b/Mailman/Commands/cmd_subscribe.py index a653158a..1c594033 100644 --- a/Mailman/Commands/cmd_subscribe.py +++ b/Mailman/Commands/cmd_subscribe.py @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2005 by the Free Software Foundation, Inc. +# Copyright (C) 2002-2008 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 @@ -53,7 +53,7 @@ def process(res, args): # Parse the args argnum = 0 for arg in args: - if arg.startswith('address='): + if arg.lower().startswith('address='): address = arg[8:] elif argnum == 0: password = arg @@ -70,6 +70,13 @@ def process(res, args): res.results.append(gethelp(mlist)) return STOP argnum += 1 + # Fix the password/digest issue + if digest is None and password.lower() in ('digest', 'nodigest'): + if password.lower() == 'digest': + digest = 1 + else: + digest = 0 + password = None # Fill in empty defaults if digest is None: digest = mlist.digest_is_default @@ -170,6 +170,9 @@ Internationalization changed to remember the user's language selection when redisplaying the page following an error. + - Changed cmd_subscribe.py to properly accept (no)digest without a + password and to recognize (no)digest and address= case insensitively. + Miscellaneous - Brad Knowles' mailman daily status report script updated to 0.0.17. |