summaryrefslogtreecommitdiff
path: root/Mailman/MailCommandHandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/MailCommandHandler.py')
-rw-r--r--Mailman/MailCommandHandler.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Mailman/MailCommandHandler.py b/Mailman/MailCommandHandler.py
index 46e293057..2cba6e054 100644
--- a/Mailman/MailCommandHandler.py
+++ b/Mailman/MailCommandHandler.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc.
+# Copyright (C) 1998,1999,2000,2001,2002 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
@@ -659,6 +659,12 @@ Usage: subscribe [password] [digest|nodigest] [address=<email-address>]"""))
digest=digest)
self.AddMember(userdesc, remote)
self.Save()
+ except Errors.MembershipIsBanned:
+ listowner = self.GetOwnerEmail()
+ self.AddToResponse(_("""\
+The email address you supplied is banned from this mailing list.
+If you think this restriction is erroneous, please contact the list
+owners at %(listowner)s."""))
except Errors.MMSubscribeNeedsConfirmation:
#
# the confirmation message that's been sent takes place