Documentation
¶
Index ¶
- Constants
- type Backend
- 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) 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
- 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) 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
- type User
- 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
Constants ¶
View Source
const MailboxPathSep = "."
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func (*Backend) CreateMessageLimit ¶
func (*Backend) CreateUser ¶
func (*Backend) DeleteUser ¶
func (*Backend) EnableChildrenExt ¶
func (*Backend) GetExistingUser ¶
func (*Backend) SetMessageLimit ¶
func (*Backend) SetUserPassword ¶
type Mailbox ¶
type Mailbox struct {
// contains filtered or unexported fields
}
func (*Mailbox) CopyMessages ¶
func (*Mailbox) CreateMessage ¶
func (*Mailbox) CreateMessageLimit ¶
func (*Mailbox) ListMessages ¶
func (*Mailbox) MoveMessages ¶
func (*Mailbox) SearchMessages ¶
func (*Mailbox) SetMessageLimit ¶
func (*Mailbox) SetSubscribed ¶
type Opts ¶
type Opts struct { // Maximum amount of bytes that backend will accept. // Intended for use with APPENDLIMIT extension. // nil value means no limit, 0 means zero limit (no new messages allowed) MaxMsgBytes *uint32 }
Opts structure specifies additional settings that may be set for backend.
Please use names to reference structure members on creation, fields may be reordered or added without major version increment.
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) CreateMailbox ¶
func (*User) CreateMessageLimit ¶
func (*User) DeleteMailbox ¶
func (*User) ListMailboxes ¶
func (*User) RenameMailbox ¶
func (*User) SetMessageLimit ¶
Click to show internal directories.
Click to hide internal directories.