summaryrefslogtreecommitdiff
path: root/src/mailman/commands/eml_membership.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-12-12 17:03:30 -0500
committerBarry Warsaw2009-12-12 17:03:30 -0500
commit725ebe36e2548c5da711087640bd423181411241 (patch)
tree8aae553f5b05d3889511dcbce8dd92f3fa7c469e /src/mailman/commands/eml_membership.py
parent3c4c8f9c383b6e92e0a9a970079b296a4ac30e88 (diff)
downloadmailman-725ebe36e2548c5da711087640bd423181411241.tar.gz
mailman-725ebe36e2548c5da711087640bd423181411241.tar.zst
mailman-725ebe36e2548c5da711087640bd423181411241.zip
Diffstat (limited to 'src/mailman/commands/eml_membership.py')
-rw-r--r--src/mailman/commands/eml_membership.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mailman/commands/eml_membership.py b/src/mailman/commands/eml_membership.py
index 2328e1a41..8b6c576f6 100644
--- a/src/mailman/commands/eml_membership.py
+++ b/src/mailman/commands/eml_membership.py
@@ -74,8 +74,7 @@ example:
print >> results, _(
'$self.name: No valid address found to subscribe')
return ContinueProcessing.no
- registrar = IRegistrar(mlist.domain)
- registrar.register(mlist, address, real_name)
+ getUtility(IRegistrar).register(mlist, address, real_name)
person = formataddr((real_name, address))
print >> results, _('Confirmation email sent to $person')
return ContinueProcessing.yes