更新 'context.go'

master
james 3 months ago
parent e9f6ffba9b
commit eb521845e0
  1. 8
      context.go

@ -6,7 +6,7 @@ import (
"regexp"
"time"
"github.com/watsonserve/maild"
"git.watsonserve.com/maild/base"
)
const (
@ -19,11 +19,11 @@ type smtp_context_t struct {
sock net.Conn
Address string
handlers SmtpServerConfigure
conf *maild.ServerConfig
conf *base.ServerConfig
Module int
Login bool
re *regexp.Regexp
Email *maild.Mail
Email *base.Mail
// 其他
Msg string
User string
@ -38,7 +38,7 @@ func initSmtpContext(sock net.Conn, config SmtpServerConfigure) *smtp_context_t
Module: mod_COMMAND,
Login: false,
re: regexp.MustCompile("<(.+)>"),
Email: &maild.Mail{},
Email: &base.Mail{},
}
return scxt

Loading…
Cancel
Save