diff options
author | Mark Sapiro <mark@msapiro.net> | 2008-02-29 09:47:36 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2008-02-29 09:47:36 -0800 |
commit | d14353a411404216f3d93d7397d91647b0959da5 (patch) | |
tree | 67fd659bc1cd5a896876b3ee8b8df3f223783ecd /bin/add_members | |
parent | 7acc4e9c0f3bce4831ca1399fa7aade621ed6b70 (diff) | |
download | mailman2-d14353a411404216f3d93d7397d91647b0959da5.tar.gz mailman2-d14353a411404216f3d93d7397d91647b0959da5.tar.xz mailman2-d14353a411404216f3d93d7397d91647b0959da5.zip |
Changed add_members, clone_member and sync_members to catch or avoid
MembershipIsBanned exception and report appropriately.
Diffstat (limited to '')
-rwxr-xr-x | bin/add_members | 3 |
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') |