]>
src.bluestatic.org Git - mailpopbox.git/blob - smtp/server.go
9 type ReplyLine
struct {
15 ReplyOK
= ReplyLine
{250, "OK"}
16 ReplyBadSyntax
= ReplyLine
{501, "syntax error"}
17 ReplyBadSequence
= ReplyLine
{503, "bad sequence of commands"}
18 ReplyBadMailbox
= ReplyLine
{550, "mailbox unavailable"}
21 type Envelope
struct {
29 type Server
interface {
31 TLSConfig() *tls
.Config
33 VerifyAddress(mail
.Address
) ReplyLine
34 OnMessageDelivered(Envelope
) *ReplyLine
37 type EmptyServerCallbacks
struct {}
39 func (*EmptyServerCallbacks
) TLSConfig() *tls
.Config
{
43 func (*EmptyServerCallbacks
) OnEHLO() *ReplyLine
{
47 func (*EmptyServerCallbacks
) VerifyAddress(mail
.Address
) ReplyLine
{
51 func (*EmptyServerCallbacks
) OnMessageDelivered(Envelope
) *ReplyLine
{