aboutsummaryrefslogtreecommitdiffstats
path: root/bin/clone_member
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2008-02-29 09:47:36 -0800
committerMark Sapiro <mark@msapiro.net>2008-02-29 09:47:36 -0800
commitd14353a411404216f3d93d7397d91647b0959da5 (patch)
tree67fd659bc1cd5a896876b3ee8b8df3f223783ecd /bin/clone_member
parent7acc4e9c0f3bce4831ca1399fa7aade621ed6b70 (diff)
downloadmailman2-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-xbin/clone_member6
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: