Versions in this module Expand all Collapse all v2 v2.0.1 Mar 22, 2024 Changes in this version + const NumKindSeq + const NumKindUID + var ErrAuthFailed = errAuthFailed + func MatchList(name string, delim rune, reference, pattern string) bool + type Conn struct + func (c *Conn) Bye(text string) error + func (c *Conn) NetConn() net.Conn + type ExpungeWriter struct + func (w *ExpungeWriter) WriteExpunge(seqNum uint32) error + type FetchResponseWriter struct + func (w *FetchResponseWriter) Close() error + func (w *FetchResponseWriter) WriteBinarySection(section *imap.FetchItemBinarySection, size int64) io.WriteCloser + func (w *FetchResponseWriter) WriteBinarySectionSize(section *imap.FetchItemBinarySection, size uint32) + func (w *FetchResponseWriter) WriteBodySection(section *imap.FetchItemBodySection, size int64) io.WriteCloser + func (w *FetchResponseWriter) WriteBodyStructure(bs imap.BodyStructure) + func (w *FetchResponseWriter) WriteEnvelope(envelope *imap.Envelope) + func (w *FetchResponseWriter) WriteFlags(flags []imap.Flag) + func (w *FetchResponseWriter) WriteInternalDate(t time.Time) + func (w *FetchResponseWriter) WriteRFC822Size(size int64) + func (w *FetchResponseWriter) WriteUID(uid imap.UID) + type FetchWriter struct + func (cmd *FetchWriter) CreateMessage(seqNum uint32) *FetchResponseWriter + type GreetingData struct + PreAuth bool + type ListWriter struct + func (w *ListWriter) WriteList(data *imap.ListData) error + type Logger interface + Printf func(format string, args ...interface{}) + type MailboxTracker struct + func NewMailboxTracker(numMessages uint32) *MailboxTracker + func (t *MailboxTracker) NewSession() *SessionTracker + func (t *MailboxTracker) QueueExpunge(seqNum uint32) + func (t *MailboxTracker) QueueMailboxFlags(flags []imap.Flag) + func (t *MailboxTracker) QueueMessageFlags(seqNum uint32, uid imap.UID, flags []imap.Flag, source *SessionTracker) + func (t *MailboxTracker) QueueNumMessages(n uint32) + type MoveWriter struct + func (w *MoveWriter) WriteCopyData(data *imap.CopyData) error + func (w *MoveWriter) WriteExpunge(seqNum uint32) error + type NumKind int + func (kind NumKind) String() string + type Options struct + Caps imap.CapSet + DebugWriter io.Writer + InsecureAuth bool + Logger Logger + NewSession func(*Conn) (Session, *GreetingData, error) + TLSConfig *tls.Config + type Server struct + func New(options *Options) *Server + func (s *Server) Close() error + func (s *Server) ListenAndServe(addr string) error + func (s *Server) ListenAndServeTLS(addr string) error + func (s *Server) Serve(ln net.Listener) error + type Session interface + Append func(mailbox string, r imap.LiteralReader, options *imap.AppendOptions) (*imap.AppendData, error) + Close func() error + Copy func(numSet imap.NumSet, dest string) (*imap.CopyData, error) + Create func(mailbox string, options *imap.CreateOptions) error + Delete func(mailbox string) error + Expunge func(w *ExpungeWriter, uids *imap.UIDSet) error + Fetch func(w *FetchWriter, numSet imap.NumSet, options *imap.FetchOptions) error + Idle func(w *UpdateWriter, stop <-chan struct{}) error + List func(w *ListWriter, ref string, patterns []string, options *imap.ListOptions) error + Login func(username, password string) error + Poll func(w *UpdateWriter, allowExpunge bool) error + Rename func(mailbox, newName string) error + Search func(kind NumKind, criteria *imap.SearchCriteria, options *imap.SearchOptions) (*imap.SearchData, error) + Select func(mailbox string, options *imap.SelectOptions) (*imap.SelectData, error) + Status func(mailbox string, options *imap.StatusOptions) (*imap.StatusData, error) + Store func(w *FetchWriter, numSet imap.NumSet, flags *imap.StoreFlags, ...) error + Subscribe func(mailbox string) error + Unselect func() error + Unsubscribe func(mailbox string) error + type SessionIMAP4rev2 interface + type SessionMove interface + Move func(w *MoveWriter, numSet imap.NumSet, dest string) error + type SessionNamespace interface + Namespace func() (*imap.NamespaceData, error) + type SessionSASL interface + Authenticate func(mech string) (sasl.Server, error) + AuthenticateMechanisms func() []string + type SessionTracker struct + func (t *SessionTracker) Close() + func (t *SessionTracker) DecodeSeqNum(seqNum uint32) uint32 + func (t *SessionTracker) EncodeSeqNum(seqNum uint32) uint32 + func (t *SessionTracker) Idle(w *UpdateWriter, stop <-chan struct{}) error + func (t *SessionTracker) Poll(w *UpdateWriter, allowExpunge bool) error + type SessionUnauthenticate interface + Unauthenticate func() error + type UpdateWriter struct + func (w *UpdateWriter) WriteExpunge(seqNum uint32) error + func (w *UpdateWriter) WriteMailboxFlags(flags []imap.Flag) error + func (w *UpdateWriter) WriteMessageFlags(seqNum uint32, uid imap.UID, flags []imap.Flag) error + func (w *UpdateWriter) WriteNumMessages(n uint32) error