aboutsummaryrefslogtreecommitdiffstats
path: root/bin/add_members
diff options
context:
space:
mode:
authorA.M. Kuchling <amk@amk.ca>2008-03-07 12:44:50 -0500
committerA.M. Kuchling <amk@amk.ca>2008-03-07 12:44:50 -0500
commite7464301f0c0f900d331cb123629f0c29be79b4b (patch)
tree3bd5613bcbbe9e7aeb8354143f963a111d6f80b6 /bin/add_members
parent9a1ea28ea1432f59498f14ab873594fe0a4d2d19 (diff)
parentdd3ada936da9f0f24f41f113902d35b20e895086 (diff)
downloadmailman2-e7464301f0c0f900d331cb123629f0c29be79b4b.tar.gz
mailman2-e7464301f0c0f900d331cb123629f0c29be79b4b.tar.xz
mailman2-e7464301f0c0f900d331cb123629f0c29be79b4b.zip
Merge
Diffstat (limited to 'bin/add_members')
-rwxr-xr-xbin/add_members3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/add_members b/bin/add_members
index fdc3f02b..03f0af3a 100755
--- a/bin/add_members
+++ b/bin/add_members
@@ -135,6 +135,9 @@ def addall(mlist, members, digest, ack, outfp):
mlist.ApprovedAddMember(userdesc, ack, 0)
except Errors.MMAlreadyAMember:
print >> tee, _('Already a member: %(member)s')
+ except Errors.MembershipIsBanned, pattern:
+ print >> tee, ('%s:' %
+ member), _('Banned address (matched %(pattern)s)')
except Errors.MMBadEmailError:
if userdesc.address == '':
print >> tee, _('Bad/Invalid email address: blank line')