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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user