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

2010-01-29 Thread Marius Gedminas
On Fri, Jan 29, 2010 at 08:00:12AM +0100, Fabio Tranchitella wrote: > * 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 fo

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

2010-01-28 Thread Fabio Tranchitella
* 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 approac

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

2010-01-28 Thread Marius Gedminas
zope.sendmail has this nasty habit of starting a background thread during ZCML conguration, if your ZCML contains a directive. This is Very Bad(TM) if you use things like debugzope, since you end up with two processes watching your mail queue, which can easily result in duplicate emails getting s