substack/node-smtp-protocol — pull request #16 by Kami (2012-07-18 21:36:36+00:00)
Title: 0 8 fixes

Node 0.8 introduced a concept of domains and in Node >= 0.8.0 `domain` attribute on `EventEmitter` objects is special. This means this library doesn't work with Node 0.8, because it assigns `domain` attribute on `req` object which is an `EventEmitter`.

I changed the attribute name from `domain` to `hostname`. This also seems more accurate from the [RFC perspective](http://james.apache.org/server/rfclist/smtp/rfc0821.txt):

```
...
HELLO (HELO)

This command is used to identify the sender-SMTP to the
receiver-SMTP. The argument field contains the host name of
the sender-SMTP.

The receiver-SMTP identifies itself to the sender-SMTP in
the connection greeting reply, and in the response to this
command.
...
```