------------------------------------------------------------
revno: 1061
committer: Mark Sapiro <[EMAIL PROTECTED]>
branch nick: 2.1
timestamp: Wed 2008-03-19 20:07:51 -0700
message:
cmd_subscribe.py - Changed to properly accept (no)digest without a password
and to recognize (no)digest and address= case
insensitively.
modified:
Mailman/Commands/cmd_subscribe.py
NEWS
=== modified file 'Mailman/Commands/cmd_subscribe.py'
--- a/Mailman/Commands/cmd_subscribe.py 2005-08-27 01:40:17 +0000
+++ b/Mailman/Commands/cmd_subscribe.py 2008-03-20 03:07:51 +0000
@@ -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 @@
# 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 @@
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
=== modified file 'NEWS'
--- a/NEWS 2008-03-13 23:28:24 +0000
+++ b/NEWS 2008-03-20 03:07:51 +0000
@@ -170,6 +170,9 @@
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.
--
Stable, maintained release series
https://code.launchpad.net/~mailman-coders/mailman/2.1
You are receiving this branch notification because you are subscribed to it.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org