Skip to content

Commit

Permalink
update to match changes in mailhog/smtp
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-kent committed Dec 10, 2015
1 parent 200ff5a commit 1a4b117
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions smtp/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ func (c *Session) validateSender(from string) bool {
return true
}

func (c *Session) acceptMessage(msg *data.Message) (id string, err error) {
c.logf("Storing message %s", msg.ID)
id, err = c.storage.Store(msg)
c.messageChan <- msg
func (c *Session) acceptMessage(msg *data.SMTPMessage) (id string, err error) {
m := msg.Parse(c.proto.Hostname)
c.logf("Storing message %s", m.ID)
id, err = c.storage.Store(m)
c.messageChan <- m
return
}

Expand Down

0 comments on commit 1a4b117

Please sign in to comment.