[Zope3-dev] Testing SmtpService

Jim Fulton jim@zope.com, jim@zope.com
Mon, 28 Oct 2002 18:08:37 -0500


Barry A. Warsaw wrote:
 >>>>>>"BAW" == Barry A Warsaw <barry@zope.com> writes:
 >>>>>>
 >
 >>>>>>"SR" == Stephan Richter <stephan.richter@tufts.edu> writes:
 >>>>>>
 >
 >     >> Seems like there's quite a few Python implementations of these
 >     >> services.  The standard library has a bare minimum smtp server
 >     >> (my crufty smtpd.py),
 >
 >     SR> Well, but it does not work out of the box, so it is not usable
 >     SR> for the average non-developer. This also does not handle
 >     SR> users.
 >
 >     BAW> I do believe it works out of the box, although I haven't
 >     BAW> played with it in a while, so it's possible there's a little
 >     BAW> bitrot.  Should be easy to fix if so.
 >
 > No bitrot in Python 2.2.2.
 >
 > I now have a test case for SmtpService which uses smtpd.py.  I had to
 > use threads so the reader and writer don't block each other, but it
 > was pretty easy to do.  I'll go ahead and check these in so folks can
 > see what my ideas are here.

Since you checked in your tests, the FTP tests fail. :(
I expect that this is due to some interaction through asyncore.
This is sad, since the SMTP service doesn't use asyncore. :/

I'm tempted to move the SMTP service to a branch for now, if nobody
objects. :]

Jim



-- 
Jim Fulton           mailto:jim@zope.com       Python Powered!
CTO                  (888) 344-4332            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org