baudehlo/Haraka — pull request #124 by smfreegard (2011-11-16 23:13:29+00:00)
Title: Various updates to connection methods

- Add a 'loop' state and loop_respond method; used in rdns_respond and connection_respond methods, so that if anything other than OK or CONT are returned, no other commands can be sent and the session does not progress (QUIT is allowed though).

- Changed the default response codes in rdns_respond and connect_respond to be more RFC compliant

- Changed the EHLO/HELO response not to output connection.remote_host if it isn't set or is NXDOMAIN or DNSERROR.

- Check for command arguments to RSET, DATA and QUIT as per the RFC.