diff options
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 fdb1289fd..2093534b4 100644 --- a/src/mailman/queue/outgoing.py +++ b/src/mailman/queue/outgoing.py @@ -45,9 +45,9 @@ class OutgoingRunner(Runner, BounceMixin): Runner.__init__(self, slice, numslices) BounceMixin.__init__(self) # We look this function up only at startup time. - module_name, callable_name = config.mta.outgoing.rsplit('.', 1) - __import__(module_name) - self._func = getattr(sys.modules[module_name], callable_name) + package, dot, callable_name = config.mta.outgoing.rpartition('.') + __import__(package) + self._func = getattr(sys.modules[package], callable_name) # 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. |
