def _startQueueProcessorThread(self): """ Start thread for processing the mail queue. """ key = self._getThreadKey() if key not in queue_threads: thread = QueueProcessorThread() thread.setMailer(self._makeMailer()) thread.setQueuePath(self.smtp_queue_directory) thread.start() queue_threads[key] = thread LOG.info('Thread for %s started' % key)
def setupMailer(): """ Set up zope.sendmail delivery thread """ config = getMailConfiguration() thread = QueueProcessorThread() thread.setMailer(makeMailer()) thread.setQueuePath(config['maildir']) thread.start() return config