1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 10:07:02 +00:00

Migrate from pkg go.enmime to enmime

This commit is contained in:
James Hillyerd
2016-11-17 18:35:01 -08:00
parent 145e71dc43
commit 1906a147f0
7 changed files with 19 additions and 19 deletions

View File

@@ -5,7 +5,7 @@ import (
"net/mail"
"time"
"github.com/jhillyerd/go.enmime"
"github.com/jhillyerd/enmime"
"github.com/jhillyerd/inbucket/smtpd"
"github.com/stretchr/testify/mock"
)
@@ -90,9 +90,9 @@ func (m *MockMessage) ReadHeader() (msg *mail.Message, err error) {
return args.Get(0).(*mail.Message), args.Error(1)
}
func (m *MockMessage) ReadBody() (body *enmime.MIMEBody, err error) {
func (m *MockMessage) ReadBody() (body *enmime.Envelope, err error) {
args := m.Called()
return args.Get(0).(*enmime.MIMEBody), args.Error(1)
return args.Get(0).(*enmime.Envelope), args.Error(1)
}
func (m *MockMessage) ReadRaw() (raw *string, err error) {