Next Release¶
Very soon
- Added Sphinx docs and ReadTheDocs configuration.
tornado.logis used to log records frombonzo.server.- Improved test suite to cover the
bonzo.__init__andbonzo.testingmodules.
New modules¶
- The
bonzo.smtpmodule provides a better way to handles messages, this module is created to support asynchronous code in the request callback. - The
bonzo.errorsmodule provides custom exceptions for writing error codes to the client.
bonzo.server¶
SMTPConnectionis raising the new exceptions from thebonzo.errorsmodule on itscommand_methods.- Added
SMTPRequestfor manage the request arguments, an instance of this class is passed as argument to the request callback. - Request callback receives an instance of
SMTPRequestnow. The message can be found on themessageattribute 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. MAILcommand returns a503error when aHELOcommand was not previously received.
bonzo.testing¶
- Added
connect,read_response,send_mail, andclosemethods to theAsyncSMTPTestCaseclass. These methods are oriented for ease to create tests to the SMTP server.