aboutsummaryrefslogtreecommitdiffstats
path: root/bin/clone_member
diff options
context:
space:
mode:
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: