Versions in this module Expand all Collapse all v1 v1.2.2 Jun 13, 2023 Changes in this version + var ErrInvalidCredentials = errors.New("Invalid credentials") + var ErrMailboxAlreadyExists = errors.New("Mailbox already exists") + var ErrNoSuchMailbox = errors.New("No such mailbox") + var ErrTooBig = errors.New("Message size exceeding limit") + type AppendLimitBackend interface + CreateMessageLimit func() *uint32 + type AppendLimitUser interface + CreateMessageLimit func() *uint32 + type Backend interface + Login func(connInfo *imap.ConnInfo, username, password string) (User, error) + type BackendUpdater interface + Updates func() <-chan Update + type ExpungeUpdate struct + SeqNum uint32 + type Mailbox interface + Check func() error + CopyMessages func(uid bool, seqset *imap.SeqSet, dest string) error + CreateMessage func(flags []string, date time.Time, body imap.Literal) error + Expunge func() error + Info func() (*imap.MailboxInfo, error) + ListMessages func(uid bool, seqset *imap.SeqSet, items []imap.FetchItem, ch chan<- *imap.Message) error + Name func() string + SearchMessages func(uid bool, criteria *imap.SearchCriteria) ([]uint32, error) + SetSubscribed func(subscribed bool) error + Status func(items []imap.StatusItem) (*imap.MailboxStatus, error) + UpdateMessagesFlags func(uid bool, seqset *imap.SeqSet, operation imap.FlagsOp, flags []string) error + type MailboxInfoUpdate struct + type MailboxPoller interface + Poll func() error + type MailboxUpdate struct + type MessageUpdate struct + type MoveMailbox interface + MoveMessages func(uid bool, seqset *imap.SeqSet, dest string) error + type StatusUpdate struct + type Update interface + Done func() chan struct{} + Mailbox func() string + Username func() string + func NewUpdate(username, mailbox string) Update + type User interface + CreateMailbox func(name string) error + DeleteMailbox func(name string) error + GetMailbox func(name string) (Mailbox, error) + ListMailboxes func(subscribed bool) ([]Mailbox, error) + Logout func() error + RenameMailbox func(existingName, newName string) error + Username func() string v1.0.0-beta.1 Feb 16, 2018