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

storage: Move NewMessage() into Store interface for #69

This commit is contained in:
James Hillyerd
2018-03-11 10:48:50 -07:00
parent d9b5e40c87
commit 137466f89b
7 changed files with 26 additions and 9 deletions

View File

@@ -451,7 +451,7 @@ func (ss *Session) dataHandler() {
// deliverMessage creates and populates a new Message for the specified recipient
func (ss *Session) deliverMessage(r recipientDetails, msgBuf [][]byte) (ok bool) {
msg, err := r.mailbox.NewMessage()
msg, err := ss.server.dataStore.NewMessage(r.localPart)
if err != nil {
ss.logError("Failed to create message for %q: %s", r.localPart, err)
return false