diff options
| author | Barry Warsaw | 2009-05-16 11:08:46 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2009-05-16 11:08:46 -0400 |
| commit | 7e23b2f358806cb14b92dc7833ce773738534d41 (patch) | |
| tree | 5499b536a163ebb4dedab62f4f7a97b460cece18 /src/mailman/queue/outgoing.py | |
| parent | ad07de3dcdbf0ef11b5b324b9521b748da207fc7 (diff) | |
| download | mailman-7e23b2f358806cb14b92dc7833ce773738534d41.tar.gz mailman-7e23b2f358806cb14b92dc7833ce773738534d41.tar.zst mailman-7e23b2f358806cb14b92dc7833ce773738534d41.zip | |
Diffstat (limited to 'src/mailman/queue/outgoing.py')
| -rw-r--r-- | src/mailman/queue/outgoing.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/queue/outgoing.py b/src/mailman/queue/outgoing.py index 2093534b4..e64e8c57b 100644 --- a/src/mailman/queue/outgoing.py +++ b/src/mailman/queue/outgoing.py @@ -29,6 +29,8 @@ from mailman.config import config from mailman.core import errors from mailman.queue import Runner from mailman.queue.bounce import BounceMixin +from mailman.utilities.modules import find_name + # This controls how often _do_periodic() will try to deal with deferred # permanent failures. It is a count of calls to _do_periodic() @@ -45,9 +47,7 @@ class OutgoingRunner(Runner, BounceMixin): Runner.__init__(self, slice, numslices) BounceMixin.__init__(self) # We look this function up only at startup time. - package, dot, callable_name = config.mta.outgoing.rpartition('.') - __import__(package) - self._func = getattr(sys.modules[package], callable_name) + self._func = find_name(config.mta.outgoing) # This prevents smtp server connection problems from filling up the # error log. It gets reset if the message was successfully sent, and # set if there was a socket.error. |
