go-smtp icon indicating copy to clipboard operation
go-smtp copied to clipboard

Add ServerDomain member into the ConnectionState struct

Open kayrus opened this issue 4 years ago • 2 comments

Add server's hostname (domain) into the ConnectionState struct. It can be used for logging purposes.

kayrus avatar Nov 26 '21 15:11 kayrus

Hm, can't you just get it from the Server directly?

emersion avatar Nov 26 '21 19:11 emersion

when you pass only the state to some internal func, there could be no server struct, only the state. introducing a new struct wrapper around that contains ServerDomain member looks like an overkill... :\

kayrus avatar Nov 26 '21 20:11 kayrus

ConnectionState has been dropped, superseded by NewSession.

emersion avatar Nov 09 '23 09:11 emersion