baudehlo/Haraka — pull request #392 by smfreegard (2013-12-17 22:49:21+00:00)
Title: Improve outbound logging, pass failed recipients as extra parameters

- Extend SMTP regex to capture the extended error code if supplied by the upstream server; this is so that the extended error code is removed from the response text to help readability when multi-line responses are sent.

- Make bounce_recips and fail_recips an array of objects where { recipient: response }

- Pass bounce_recips and fail_recips as 'extra' parameter to hmail.bounce and hmail.temp_fail