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

Replace internal MIME with go.enmime

This commit is contained in:
James Hillyerd
2012-11-04 13:25:24 -08:00
parent 24e74936b7
commit afe0d779cb
9 changed files with 8 additions and 468 deletions

View File

@@ -1,6 +1,7 @@
package smtpd
import (
"github.com/jhillyerd/go.enmime"
"net/mail"
"time"
)
@@ -23,11 +24,10 @@ type Message interface {
Date() time.Time
Subject() string
ReadHeader() (msg *mail.Message, err error)
ReadBody() (msg *mail.Message, body *MIMEBody, err error)
ReadBody() (msg *mail.Message, body *enmime.MIMEBody, err error)
ReadRaw() (raw *string, err error)
Append(data []byte) error
Close() error
Delete() error
String() string
}