summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/options.py
diff options
context:
space:
mode:
authorbwarsaw2003-01-02 05:40:26 +0000
committerbwarsaw2003-01-02 05:40:26 +0000
commite6a123f6ce2d3738b4b32a74a94f003eeb012109 (patch)
treed4364a9dd21b7effe16f8f401de614b4ba0173af /Mailman/Cgi/options.py
parent62a66fa422dccf54246e287702ca85f2e93294fa (diff)
downloadmailman-e6a123f6ce2d3738b4b32a74a94f003eeb012109.tar.gz
mailman-e6a123f6ce2d3738b4b32a74a94f003eeb012109.tar.zst
mailman-e6a123f6ce2d3738b4b32a74a94f003eeb012109.zip
main(): In the change-of-address section, we only want to show the
"you are already using that email address" message if the newaddress matches the case-preserved (subscribed) address. Also, in the set_address section, if cpuser is None, set it to the the user address, since that's what we'll use now as the old address in the ChangeMemberAddress() call. This and related changes should fix problems when the address we're changing to differs for the current address by case only.
Diffstat (limited to 'Mailman/Cgi/options.py')
-rw-r--r--Mailman/Cgi/options.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py
index da4562f74..ef080a680 100644
--- a/Mailman/Cgi/options.py
+++ b/Mailman/Cgi/options.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2003 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
@@ -284,7 +284,7 @@ def main():
_('Addresses did not match!'))
print doc.Format()
return
- if newaddr == user:
+ if newaddr == cpuser:
options_page(mlist, doc, user, cpuser, userlang,
_('You are already using that email address'))
print doc.Format()
@@ -324,12 +324,14 @@ address. Upon confirmation, any other mailing list containing the address
signal.signal(signal.SIGTERM, sigterm_handler)
if set_address:
+ if cpuser is None:
+ cpuser = user
# Register the pending change after the list is locked
msg += _('A confirmation message has been sent to %(newaddr)s. ')
mlist.Lock()
try:
try:
- mlist.ChangeMemberAddress(user, newaddr, globally)
+ mlist.ChangeMemberAddress(cpuser, newaddr, globally)
mlist.Save()
finally:
mlist.Unlock()