1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-19 10:37:01 +00:00

Started impl DELE

This commit is contained in:
James Hillyerd
2013-09-11 23:12:22 -07:00
parent 983b4f745a
commit 01f6ad514b
3 changed files with 256 additions and 30 deletions

View File

@@ -2,6 +2,7 @@ package smtpd
import (
"github.com/jhillyerd/go.enmime"
"io"
"net/mail"
"time"
)
@@ -23,6 +24,7 @@ type Message interface {
From() string
Date() time.Time
Subject() string
RawReader() (reader io.ReadCloser, err error)
ReadHeader() (msg *mail.Message, err error)
ReadBody() (msg *mail.Message, body *enmime.MIMEBody, err error)
ReadRaw() (raw *string, err error)