summaryrefslogtreecommitdiff
path: root/src/mailman/queue/lmtp.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-08-26 02:27:37 -0400
committerBarry Warsaw2009-08-26 02:27:37 -0400
commit9ad8c1e5524bc9479fd356757016ec160f392dd7 (patch)
tree2e8f5aab9ed6d9c52f03ae355dbed080602ee5b1 /src/mailman/queue/lmtp.py
parent0ce2f82735911c738349b1812c86e09355ecee60 (diff)
downloadmailman-9ad8c1e5524bc9479fd356757016ec160f392dd7.tar.gz
mailman-9ad8c1e5524bc9479fd356757016ec160f392dd7.tar.zst
mailman-9ad8c1e5524bc9479fd356757016ec160f392dd7.zip
Diffstat (limited to 'src/mailman/queue/lmtp.py')
-rw-r--r--src/mailman/queue/lmtp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/queue/lmtp.py b/src/mailman/queue/lmtp.py
index a198f8850..c07594c0e 100644
--- a/src/mailman/queue/lmtp.py
+++ b/src/mailman/queue/lmtp.py
@@ -37,6 +37,7 @@ import logging
import asyncore
from email.utils import parseaddr
+from zope.component import getUtility
from mailman.config import config
from mailman.database.transaction import txn
@@ -134,7 +135,7 @@ class LMTPRunner(Runner, smtpd.SMTPServer):
try:
# Refresh the list of list names every time we process a message
# since the set of mailing lists could have changed.
- listnames = set(IListManager(config).names)
+ listnames = set(getUtility(IListManager).names)
qlog.debug('listnames: %s', listnames)
# Parse the message data. If there are any defects in the
# message, reject it right away; it's probably spam.