[spambayes-dev] RE: [Spambayes] pop3proxy_service and smtpproxy
mhammond at skippinet.com.au
Mon Aug 18 14:56:43 EDT 2003
> The service starts pop3proxy's main function, but smtpproxy is started
> in pop3proxy's run function (which calls main).
> What's the best way to fix this?
> o Move the smtpproxy starting code into main().
> o Add smtpproxy starting code into pop3proxy_service.py.
> o Have a separate service for smtpproxy (this is problematic because
> they have to share the database).
> o Something else.
The best way is to have a single entry-point that pop3proxy_service.py can
call to start everything it needs. I don't care how it is spelt, or what it
looks or smells like :)
> I don't really know much about Windows services, so I'm
> throwing this to
> the -dev list.
Note pop3proxy_service.py has about 100 lines of code, so should be easy to
get your head around. About the only real issue is the need for an
asynchronous "stop" command that can be issued (which may need to be
implemented via a local socket - whatever). This is missing now, and is
slightly dangerous as currently pop3proxy is simply aborted at service
I don't really know much about pop3proxy <wink>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2148 bytes
Desc: not available
Url : http://mail.python.org/pipermail/spambayes-dev/attachments/20030818/9a152589/winmail.bin
More information about the spambayes-dev