[Zope-dev] zope.sendmail RFC: start background thread on ProcessStarting event

Fabio Tranchitella kobold at kobold.it
Fri Jan 29 02:00:12 EST 2010


* 2010-01-28 15:56, Marius Gedminas wrote:
> I recently came up with a different and perhaps a bit simpler solution:
> 
>   * make zope.sendmail not start the thread during ZCML processing,
>     instead make it listen for ProcessStarting events and start the
>     thread then.

I like your approach, as long as the console script is also provided to
process the queue (as it is now in 3.8.0).

In any way, to keep BBB, we should ensure that users of zope.sendmail will
have the thread running by default, without changing their code.

Thanks.

-- 
Fabio Tranchitella / Tranchitella Kft.         http://tranchitella.eu
1024D/7F961564, fpr 5465 6E69 E559 6466 BF3D 9F01 2BF8 EE2B 7F96 1564


More information about the Zope-Dev mailing list