예제 #1
0
 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)
예제 #2
0
def setupMailer():
    """ Set up zope.sendmail delivery thread """

    config = getMailConfiguration()
    thread = QueueProcessorThread()
    thread.setMailer(makeMailer())
    thread.setQueuePath(config['maildir'])
    thread.start()
    return config
예제 #3
0
 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)