diff options
author | Mark Sapiro <mark@msapiro.net> | 2020-01-09 17:00:40 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2020-01-09 17:00:40 -0800 |
commit | 300671a6c0181f9792cb6bdc9d03f9016d3d1327 (patch) | |
tree | df6af1a3727112ac3a1c37547df69c9120af8126 /Mailman/Commands/cmd_subscribe.py | |
parent | cf47ad68d9cdb269f3c1ea3d57f8b484141bfad5 (diff) | |
download | mailman2-300671a6c0181f9792cb6bdc9d03f9016d3d1327.tar.gz mailman2-300671a6c0181f9792cb6bdc9d03f9016d3d1327.tar.xz mailman2-300671a6c0181f9792cb6bdc9d03f9016d3d1327.zip |
Implement REFUSE_SECOND_PENDING setting to prevent multiple pending subscribes.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Commands/cmd_subscribe.py | 4 |
1 files changed, 4 insertions, 0 deletions
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!')) |