1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

Hide envelope, use Part.Content for #85

This commit is contained in:
James Hillyerd
2018-03-20 17:55:43 -07:00
parent 6d250a47b4
commit e7a86bd8f8
5 changed files with 65 additions and 36 deletions

View File

@@ -121,7 +121,7 @@ func (s *StoreManager) GetMessage(mailbox, id string) (*Message, error) {
}
_ = r.Close()
header := makeMetadata(sm)
return &Message{Metadata: *header, Envelope: env}, nil
return &Message{Metadata: *header, env: env}, nil
}
// PurgeMessages removes all messages from the specified mailbox.