From 6dd2b7fdf06cb3a9e6bc461efe3ab17e73dbe939 Mon Sep 17 00:00:00 2001 From: msapiro <> Date: Sat, 3 Dec 2005 01:04:39 +0000 Subject: Improving banned subscription logic to cover all subscribes, address changes and confirmations of same. --- Mailman/Commands/cmd_confirm.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Mailman/Commands') diff --git a/Mailman/Commands/cmd_confirm.py b/Mailman/Commands/cmd_confirm.py index 6574355d..94075c30 100644 --- a/Mailman/Commands/cmd_confirm.py +++ b/Mailman/Commands/cmd_confirm.py @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2003 by the Free Software Foundation, Inc. +# Copyright (C) 2002-2005 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 @@ -63,6 +63,12 @@ Your request has been forwarded to the list moderator for approval.""")) res.results.append(_("""\ You are not currently a member. Have you already unsubscribed or changed your email address?""")) + except Errors.MembershipIsBanned: + owneraddr = mlist.GetOwnerEmail() + res.results.append(_("""\ +You are currently banned from subscribing to this list. If you think this +restriction is erroneous, please contact the list owners at +%(owneraddr)s.""")) except Errors.HostileSubscriptionError: res.results.append(_("""\ You were not invited to this mailing list. The invitation has been discarded, -- cgit v1.2.3