更新 'smtd.go'

master
james 3 months ago
parent 6f879b5611
commit c16c9bb679
  1. 8
      smtd.go

@ -9,15 +9,15 @@ import (
"net"
"strings"
"github.com/watsonserve/maild"
"git.watsonserve.com/maild/base"
)
// 接口集合
type SmtpServerConfigure interface {
GetConfig() *maild.ServerConfig
GetConfig() *base.ServerConfig
Auth(username string, password string) string
TakeOff(email *maild.Mail)
TakeOff(email *base.Mail)
}
type smtpd_t struct {
@ -79,7 +79,7 @@ func dataHead(ctx *smtp_context_t) {
ctx.Email.Head[len(ctx.Email.Head)-1].Value += "\r\n" + ctx.Msg
} else {
attr := strings.Split(ctx.Msg, ": ")
ele := &maild.KV{
ele := &base.KV{
Name: attr[0],
Value: attr[1],
}

Loading…
Cancel
Save