Versions in this module Expand all Collapse all v1 v1.0.0 Oct 14, 2019 Changes in this version + const OptAddHeader + const OptAddRcpt + const OptAllEvents + const OptChangeBody + const OptChangeHeader + const OptNoBody + const OptNoConnect + const OptNoEOH + const OptNoHeaders + const OptNoHelo + const OptNoMailFrom + const OptNoRcptTo + const OptQuarantine + const OptRemoveRcpt + const RespAccept + const RespContinue + const RespDiscard + const RespReject + const RespTempFail + type CustomResponse struct + func NewResponse(code byte, data []byte) *CustomResponse + func NewResponseStr(code byte, data string) *CustomResponse + func (c *CustomResponse) Continue() bool + func (c *CustomResponse) Response() *Message + type Message struct + Code byte + Data []byte + type Milter interface + Body func(m *Modifier) (Response, error) + BodyChunk func(chunk []byte, m *Modifier) (Response, error) + Connect func(host string, family string, port uint16, addr net.IP, m *Modifier) (Response, error) + Header func(name string, value string, m *Modifier) (Response, error) + Headers func(h textproto.MIMEHeader, m *Modifier) (Response, error) + Helo func(name string, m *Modifier) (Response, error) + MailFrom func(from string, m *Modifier) (Response, error) + RcptTo func(rcptTo string, m *Modifier) (Response, error) + type Modifier struct + Headers textproto.MIMEHeader + Macros map[string]string + func (m *Modifier) AddHeader(name, value string) error + func (m *Modifier) AddRecipient(r string) error + func (m *Modifier) ChangeHeader(index int, name, value string) error + func (m *Modifier) DeleteRecipient(r string) error + func (m *Modifier) Quarantine(reason string) error + func (m *Modifier) ReplaceBody(body []byte) error + type OptAction uint32 + type OptProtocol uint32 + type Response interface + Continue func() bool + Response func() *Message + type Server struct + Actions OptAction + Milter Milter + Protocol OptProtocol + func New(milter Milter, actions OptAction, protocol OptProtocol) *Server + func (srv *Server) Serve(listener net.Listener) error + func (srv *Server) Shutdown() + type SimpleResponse byte + func (r SimpleResponse) Continue() bool + func (r SimpleResponse) Response() *Message