From 8879ec2a9d05fbe243abe5545bcb136187d8d49b Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Sun, 16 Mar 2003 07:07:57 +0000 Subject: process(): Catch HostileSubscriptionError and return an error message. Closes SF bug # 703941 by Stuart Bishop, who also suggested the basic fix. --- Mailman/Commands/cmd_confirm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mailman/Commands/cmd_confirm.py b/Mailman/Commands/cmd_confirm.py index 3fdd3af6a..f93e7b9b2 100644 --- a/Mailman/Commands/cmd_confirm.py +++ b/Mailman/Commands/cmd_confirm.py @@ -63,6 +63,10 @@ Your request has been forwarded to the list moderator for approval.""")) res.results.append(_("""\ You are not current a member. Have you already unsubscribed or changed your email address?""")) + except Errors.HostileSubscriptionError: + res.results.append(_("""\ +You were not invited to this mailing list. The invitation has been discarded, +and both list administrators have been alerted.""")) else: if ((results[0] == Pending.SUBSCRIPTION and mlist.send_welcome_msg) or -- cgit v1.3.1