Documentation ¶
Overview ¶
Package backendutil provide utilities to implement SMTP backends.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransformBackend ¶
type TransformBackend struct { Backend smtp.Backend Transform func(session *smtp.Session, username string) TransformHandler AnonymousTransform func(session *smtp.Session) TransformHandler }
TransformBackend is a backend that transforms messages.
func (*TransformBackend) AnonymousLogin ¶
func (be *TransformBackend) AnonymousLogin(state *smtp.ConnectionState) (smtp.Session, error)
AnonymousLogin implements the smtp.Backend interface.
func (*TransformBackend) Login ¶
func (be *TransformBackend) Login(state *smtp.ConnectionState, username, password string) (smtp.Session, error)
Login implements the smtp.Backend interface.
Click to show internal directories.
Click to hide internal directories.