Versions in this module Expand all Collapse all v0 v0.1.0 Mar 30, 2019 Changes in this version + const MailboxPathSep + type Backend struct + func NewBackend(driver, dsn string, opts Opts) (*Backend, error) + func (b *Backend) CheckPlain(username, password string) bool + func (b *Backend) Close() error + func (b *Backend) CreateMessageLimit() *uint32 + func (b *Backend) CreateUser(username, password string) error + func (b *Backend) DeleteUser(username string) error + func (b *Backend) EnableChildrenExt() bool + func (b *Backend) GetExistingUser(username string) (backend.User, error) + func (b *Backend) GetUser(username string) (backend.User, error) + func (b *Backend) ListUsers() ([]string, error) + func (b *Backend) Login(username, password string) (backend.User, error) + func (b *Backend) SetMessageLimit(val *uint32) error + func (b *Backend) SetUserPassword(username, newPassword string) error + func (b *Backend) Updates() <-chan backend.Update + func (b *Backend) UserCreds(username string) (uint64, []byte, []byte, error) + type Mailbox struct + func (m *Mailbox) Check() error + func (m *Mailbox) CopyMessages(uid bool, seqset *imap.SeqSet, dest string) error + func (m *Mailbox) CreateMessage(flags []string, date time.Time, body imap.Literal) error + func (m *Mailbox) CreateMessageLimit() *uint32 + func (m *Mailbox) DelMessages(uid bool, seqset *imap.SeqSet) error + func (m *Mailbox) Expunge() error + func (m *Mailbox) Info() (*imap.MailboxInfo, error) + func (m *Mailbox) ListMessages(uid bool, seqset *imap.SeqSet, items []imap.FetchItem, ch chan<- *imap.Message) error + func (m *Mailbox) MoveMessages(uid bool, seqset *imap.SeqSet, dest string) error + func (m *Mailbox) Name() string + func (m *Mailbox) SearchMessages(uid bool, criteria *imap.SearchCriteria) ([]uint32, error) + func (m *Mailbox) SetMessageLimit(val *uint32) error + func (m *Mailbox) SetSubscribed(subscribed bool) error + func (m *Mailbox) Status(items []imap.StatusItem) (*imap.MailboxStatus, error) + func (m *Mailbox) UidNext(tx *sql.Tx) (uint32, error) + func (m *Mailbox) UpdateMessagesFlags(uid bool, seqset *imap.SeqSet, operation imap.FlagsOp, flags []string) error + type Opts struct + LazyUpdatesInit bool + MaxMsgBytes *uint32 + PRNG Rand + type Rand interface + Uint32 func() uint32 + type User struct + func (u *User) CreateMailbox(name string) error + func (u *User) CreateMessageLimit() *uint32 + func (u *User) DeleteMailbox(name string) error + func (u *User) GetMailbox(name string) (backend.Mailbox, error) + func (u *User) ID() uint64 + func (u *User) ListMailboxes(subscribed bool) ([]backend.Mailbox, error) + func (u *User) Logout() error + func (u *User) RenameMailbox(existingName, newName string) error + func (u *User) SetMessageLimit(val *uint32) error + func (u *User) Username() string