summaryrefslogtreecommitdiff
path: root/Mailman/MailCommandHandler.py
diff options
context:
space:
mode:
authorhmeland1999-07-01 18:25:05 +0000
committerhmeland1999-07-01 18:25:05 +0000
commit3b63e2cd4809cd7110c830ce4caf2639ad2a4148 (patch)
treef4e58c3fdd000ddb74c2787c159b9c442e7b2f02 /Mailman/MailCommandHandler.py
parent487180813a7bec2114acf48627e807cd9c27af74 (diff)
downloadmailman-3b63e2cd4809cd7110c830ce4caf2639ad2a4148.tar.gz
mailman-3b63e2cd4809cd7110c830ce4caf2639ad2a4148.tar.zst
mailman-3b63e2cd4809cd7110c830ce4caf2639ad2a4148.zip
ProcessConfirmCmd(): Confirmation of an subscription for an address
can bomb out with MMAlreadyAMember if the address has already been subscribed by some other mechanism after the pending confirmation was registered. Catch this and reply politely.
Diffstat (limited to 'Mailman/MailCommandHandler.py')
-rw-r--r--Mailman/MailCommandHandler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/MailCommandHandler.py b/Mailman/MailCommandHandler.py
index 5b8d9424f..cc9bc410a 100644
--- a/Mailman/MailCommandHandler.py
+++ b/Mailman/MailCommandHandler.py
@@ -609,7 +609,10 @@ background and instructions for subscribing to and using it, visit:
except Errors.MMNeedApproval, admin_addr:
self.AddToResponse("Your request has been forwarded to the list "
"administrator for approval")
-
+ except Errors.MMAlreadyAMember:
+ # Some other subscription request for this address has
+ # already succeeded.
+ self.AddError("You are already subscribed!")
else:
#
# if the list sends a welcome message, we don't need a response