Next Release¶
Very soon
- Added Sphinx docs and ReadTheDocs configuration.
tornado.log
is used to log records frombonzo.server
.- Improved test suite to cover the
bonzo.__init__
andbonzo.testing
modules.
New modules¶
- The
bonzo.smtp
module provides a better way to handles messages, this module is created to support asynchronous code in the request callback. - The
bonzo.errors
module provides custom exceptions for writing error codes to the client.
bonzo.server
¶
SMTPConnection
is raising the new exceptions from thebonzo.errors
module on itscommand_
methods.- Added
SMTPRequest
for manage the request arguments, an instance of this class is passed as argument to the request callback. - Request callback receives an instance of
SMTPRequest
now. The message can be found on themessage
attribute of the request. - Request callbacks should call to the
finish()
method in order to finish the request by sending a successfully message to the client. - Exceptions in request callbacks no longer silently pass, instead the
server returns an internal confusion error (
451
) to the client and the exceptions are now logged for debugging. MAIL
command returns a503
error when aHELO
command was not previously received.
bonzo.testing
¶
- Added
connect
,read_response
,send_mail
, andclose
methods to theAsyncSMTPTestCase
class. These methods are oriented for ease to create tests to the SMTP server.