Versions in this module Expand all Collapse all v1 v1.2.2 Jun 13, 2023 Changes in this version + const MinAutoLogout + var ErrAlreadyAuthenticated = errors.New("Already authenticated") + var ErrAuthDisabled = errors.New("Authentication disabled") + var ErrMailboxReadOnly = errors.New("Mailbox opened in read-only mode") + var ErrNoMailboxSelected = errors.New("No mailbox selected") + var ErrNotAuthenticated = errors.New("Not authenticated") + func ErrNoStatusResp() error + func ErrStatusResp(res *imap.StatusResp) error + type Append struct + func (cmd *Append) Handle(conn Conn) error + type Authenticate struct + func (cmd *Authenticate) Handle(conn Conn) error + type Capability struct + func (cmd *Capability) Handle(conn Conn) error + type Check struct + func (cmd *Check) Handle(conn Conn) error + type Close struct + func (cmd *Close) Handle(conn Conn) error + type Conn interface + Capabilities func() []string + Close func() error + Context func() *Context + Info func() *imap.ConnInfo + IsTLS func() bool + Server func() *Server + TLSState func() *tls.ConnectionState + Upgrade func(upgrader imap.ConnUpgrader) error + WaitReady func() + WriteResp func(res imap.WriterTo) error + type ConnExtension interface + NewConn func(c Conn) Conn + type Context struct + LoggedOut <-chan struct{} + Mailbox backend.Mailbox + MailboxReadOnly bool + Responses chan<- imap.WriterTo + State imap.ConnState + User backend.User + type Copy struct + func (cmd *Copy) Handle(conn Conn) error + func (cmd *Copy) UidHandle(conn Conn) error + type Create struct + func (cmd *Create) Handle(conn Conn) error + type Delete struct + func (cmd *Delete) Handle(conn Conn) error + type Expunge struct + func (cmd *Expunge) Handle(conn Conn) error + type Extension interface + Capabilities func(c Conn) []string + Command func(name string) HandlerFactory + type Fetch struct + func (cmd *Fetch) Handle(conn Conn) error + func (cmd *Fetch) UidHandle(conn Conn) error + type Handler interface + Handle func(conn Conn) error + type HandlerFactory func() Handler + type Idle struct + func (cmd *Idle) Handle(conn Conn) error + type List struct + func (cmd *List) Handle(conn Conn) error + type Login struct + func (cmd *Login) Handle(conn Conn) error + type Logout struct + func (cmd *Logout) Handle(conn Conn) error + type Move struct + func (h *Move) Handle(conn Conn) error + func (h *Move) UidHandle(conn Conn) error + type Noop struct + func (cmd *Noop) Handle(conn Conn) error + type Rename struct + func (cmd *Rename) Handle(conn Conn) error + type SASLServerFactory func(conn Conn) sasl.Server + type Search struct + func (cmd *Search) Handle(conn Conn) error + func (cmd *Search) UidHandle(conn Conn) error + type Select struct + func (cmd *Select) Handle(conn Conn) error + type Server struct + Addr string + AllowInsecureAuth bool + AutoLogout time.Duration + Backend backend.Backend + Debug io.Writer + ErrorLog imap.Logger + MaxLiteralSize uint32 + TLSConfig *tls.Config + Updates <-chan backend.Update + func New(bkd backend.Backend) *Server + func (s *Server) Close() error + func (s *Server) Command(name string) HandlerFactory + func (s *Server) Enable(extensions ...Extension) + func (s *Server) EnableAuth(name string, f SASLServerFactory) + func (s *Server) ForEachConn(f func(Conn)) + func (s *Server) ListenAndServe() error + func (s *Server) ListenAndServeTLS() error + func (s *Server) Serve(l net.Listener) error + type StartTLS struct + func (cmd *StartTLS) Handle(conn Conn) error + func (cmd *StartTLS) Upgrade(conn Conn) error + type Status struct + func (cmd *Status) Handle(conn Conn) error + type Store struct + func (cmd *Store) Handle(conn Conn) error + func (cmd *Store) UidHandle(conn Conn) error + type Subscribe struct + func (cmd *Subscribe) Handle(conn Conn) error + type Uid struct + func (cmd *Uid) Handle(conn Conn) error + type UidHandler interface + UidHandle func(conn Conn) error + type Unselect struct + func (cmd *Unselect) Handle(conn Conn) error + type Unsubscribe struct + func (cmd *Unsubscribe) Handle(conn Conn) error + type Upgrader interface + Upgrade func(conn Conn) error v1.0.0-beta.1 Feb 16, 2018