[zope2-tracker] [Bug 574286] [NEW] MailHost has wrong strategy creating queue processing threads

Maric Michaud maric at aristote.info
Mon May 3 04:30:01 EDT 2010


Public bug reported:

I was surprised by the behavior of asynchronous mailing in zope 2.11.3 
MailHost product. It creates a thread by instance of MailHost by the 
mean of using self.absolute_url(1) as key for the queue_threads dictionnary.

It seems obviously wrong, IMO, if several instances share the same queue directory,
mesages actually get sent more than once.

Following is a patch which works fine, but the idea is 
straightforward, it's to use the realpath of the smtp_queue_directory as 
the identifier of the thread, ensuring that MailHosts that share the 
same queue directory will also share the same thread for processing mails.

This bug apply to zope 2.12 too, but the provided patch should work the
same way.

** Affects: zope2
     Importance: Undecided
         Status: New

-- 
MailHost has wrong strategy creating queue processing threads
https://bugs.launchpad.net/bugs/574286
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list