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/clone_member | |
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 'bin/clone_member')
-rwxr-xr-x | bin/clone_member | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/clone_member b/bin/clone_member index 1f2a03ac..915c540f 100755 --- a/bin/clone_member +++ b/bin/clone_member @@ -129,6 +129,12 @@ def dolist(mlist, options): if not options.quiet: print _(' address not found:'), options.fromaddr return + # Check for banned to address. + pattern = mlist.GetBannedPattern(options.toaddr) + if pattern: + if not options.quiet: + print ' ', _('Banned address (matched %(pattern)s)') + return # Now change the membership address try: |