Store envelope from & to before message is processed

The connection.from and connection.to fields get lost somewhere during
the mail parsing process, so they need to be stored right when we get
the dataReady event.