aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2008-02-23 13:43:59 -0800
committerMark Sapiro <mark@msapiro.net>2008-02-23 13:43:59 -0800
commit5579d29ddd2e3971d4b3ffdbdbb79641347b502f (patch)
tree5211ef39647e3b09fec806fccd8507e6972c1d00
parentd1e936a52d03f3c7551adda47e22cdcbd5abd352 (diff)
downloadmailman2-5579d29ddd2e3971d4b3ffdbdbb79641347b502f.tar.gz
mailman2-5579d29ddd2e3971d4b3ffdbdbb79641347b502f.tar.xz
mailman2-5579d29ddd2e3971d4b3ffdbdbb79641347b502f.zip
MailList.py - Reversed a portion of the immediately previous change. It
was just more complicated and logically equivalent to the previous code.
Diffstat (limited to '')
-rw-r--r--Mailman/MailList.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index 9c3d87fe..a1374398 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -1065,10 +1065,9 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin,
newaddr = Utils.LCDomain(newaddr)
Utils.ValidateEmail(newaddr)
# Raise an exception if this email address is already a member of the
- # list, but only if the new address not a case change of the old
+ # list, but only if the new address is the same case-wise as the old
# address and we're not doing a global change.
- if not globally and not (newaddr <> oldaddr and
- newaddr.lower() == oldaddr.lower()) and self.isMember(newaddr):
+ if not globally and newaddr == oldaddr and self.isMember(newaddr):
raise Errors.MMAlreadyAMember
if newaddr == self.GetListEmail().lower():
raise Errors.MMBadEmailError