summaryrefslogtreecommitdiff
path: root/src/mailman/queue/outgoing.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-05-15 18:57:40 -0400
committerBarry Warsaw2009-05-15 18:57:40 -0400
commitad07de3dcdbf0ef11b5b324b9521b748da207fc7 (patch)
tree98116b50d009464c247f490ca200939eaa3bc73f /src/mailman/queue/outgoing.py
parent855d7188024f67570a946665f5ba19522fbdb48a (diff)
downloadmailman-ad07de3dcdbf0ef11b5b324b9521b748da207fc7.tar.gz
mailman-ad07de3dcdbf0ef11b5b324b9521b748da207fc7.tar.zst
mailman-ad07de3dcdbf0ef11b5b324b9521b748da207fc7.zip
Diffstat (limited to 'src/mailman/queue/outgoing.py')
-rw-r--r--src/mailman/queue/outgoing.py6
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.