From 300671a6c0181f9792cb6bdc9d03f9016d3d1327 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Thu, 9 Jan 2020 17:00:40 -0800 Subject: Implement REFUSE_SECOND_PENDING setting to prevent multiple pending subscribes. --- Mailman/Commands/cmd_subscribe.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Mailman/Commands/cmd_subscribe.py') diff --git a/Mailman/Commands/cmd_subscribe.py b/Mailman/Commands/cmd_subscribe.py index abe8b762..098740c8 100644 --- a/Mailman/Commands/cmd_subscribe.py +++ b/Mailman/Commands/cmd_subscribe.py @@ -128,6 +128,10 @@ the email address you gave is insecure.""")) except Errors.MMAlreadyAMember: res.results.append(_('You are already subscribed!')) return STOP + except Errors.MMAlreadyPending: + res.results.append( + _('You already have a subscription pending confirmation')) + return STOP except Errors.MMCantDigestError: res.results.append( _('No one can subscribe to the digest of this list!')) -- cgit v1.2.3