Log message for revision 78987: some cleanup Changed: U Zope/trunk/lib/python/Products/MailHost/MailHost.py
-=- Modified: Zope/trunk/lib/python/Products/MailHost/MailHost.py =================================================================== --- Zope/trunk/lib/python/Products/MailHost/MailHost.py 2007-08-19 09:38:03 UTC (rev 78986) +++ Zope/trunk/lib/python/Products/MailHost/MailHost.py 2007-08-19 09:54:04 UTC (rev 78987) @@ -18,6 +18,7 @@ import mimetools import rfc822 import time +import logging from cStringIO import StringIO import Acquisition @@ -37,8 +38,10 @@ from interfaces import IMailHost -queue_threads = {} +queue_threads = {} # maps MailHost path -> queue processor threada +LOG = logging.getLogger('MailHost') + class MailHostError(Exception): pass @@ -199,9 +202,7 @@ """ Start thread for processing the mail queue """ path = self.absolute_url(1) - if not queue_threads.has_key(path): - thread = QueueProcessorThread() thread.setMailer(self._makeMailer()) thread.setQueuePath(self.smtp_queue_directory) @@ -214,10 +215,8 @@ """ Send the message """ if self.smtp_queue: - # Start queue processor thread, if necessary self._startQueueProcessorThread() - delivery = QueuedMailDelivery(self.smtp_queue_directory) else: delivery = DirectMailDelivery(self._makeMailer()) _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins