Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)
This thread is started at configuration time from the
`mail:queuedDelivery` directive handler if processorThread is True.

src/p/r/Products.MailHost-2.13.1/src/Products/MailHost/MailHost.py   Products.MailHost(Download)
from zope.sendmail.mailer import SMTPMailer
from zope.sendmail.maildir import Maildir
from zope.sendmail.delivery import DirectMailDelivery, QueuedMailDelivery, \
                            QueueProcessorThread
 
        key = self._getThreadKey()
        if key not in queue_threads:
            thread = QueueProcessorThread()
            thread.setMailer(self._makeMailer())
            thread.setQueuePath(self.smtp_queue_directory)

src/z/o/zopyx.smartprintng.server-1.1.2/zopyx/smartprintng/server/mail_util.py   zopyx.smartprintng.server(Download)
from ConfigParser import ConfigParser
from zope.sendmail.mailer import SMTPMailer
from zope.sendmail.delivery import QueuedMailDelivery, QueueProcessorThread
import transaction
from logger import LOG
def setupMailer():
    """ Set up zope.sendmail delivery thread """
 
    config = getMailConfiguration()
    thread = QueueProcessorThread()

src/l/o/lovely.mail-0.3.1/src/lovely/mail/testing.py   lovely.mail(Download)
        IQueuedMailDelivery,
        )
from zope.sendmail.delivery import QueueProcessorThread
 
 
        oldQueuePath = delivery._queuePath
        delivery._queuePath = os.path.join(tempfile.mkdtemp(), 'mail')
        thread = QueueProcessorThread()
        thread.setMailer(mailer)
        thread.setQueuePath(delivery.queuePath)