{"modulePath":"github.com/foxcpp/go-imap-sql","version":"v0.1.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package imap\n\n## Constants\n\n```go\nconst MailboxPathSep = \".\"\n```\n\n## Types\n\n```go\ntype Backend struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBackend(driver, dsn string, opts Opts) (*Backend, error)\n```\n\n```go\nfunc (b *Backend) CheckPlain(username, password string) bool\n```\n\n```go\nfunc (b *Backend) Close() error\n```\n\n```go\nfunc (b *Backend) CreateMessageLimit() *uint32\n```\n\n```go\nfunc (b *Backend) CreateUser(username, password string) error\n```\n\n```go\nfunc (b *Backend) DeleteUser(username string) error\n```\n\n```go\nfunc (b *Backend) EnableChildrenExt() bool\n```\n\n```go\nfunc (b *Backend) GetExistingUser(username string) (backend.User, error)\n```\n\n```go\nfunc (b *Backend) GetUser(username string) (backend.User, error)\n```\n\n```go\nfunc (b *Backend) ListUsers() ([]string, error)\n```\n\n```go\nfunc (b *Backend) Login(username, password string) (backend.User, error)\n```\n\n```go\nfunc (b *Backend) SetMessageLimit(val *uint32) error\n```\n\n```go\nfunc (b *Backend) SetUserPassword(username, newPassword string) error\n```\n\n```go\nfunc (b *Backend) Updates() \u003c-chan backend.Update\n```\n\n```go\nfunc (b *Backend) UserCreds(username string) (uint64, []byte, []byte, error)\n```\n\n```go\ntype Mailbox struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (m *Mailbox) Check() error\n```\n\n```go\nfunc (m *Mailbox) CopyMessages(uid bool, seqset *imap.SeqSet, dest string) error\n```\n\n```go\nfunc (m *Mailbox) CreateMessage(flags []string, date time.Time, body imap.Literal) error\n```\n\n```go\nfunc (m *Mailbox) CreateMessageLimit() *uint32\n```\n\n```go\nfunc (m *Mailbox) DelMessages(uid bool, seqset *imap.SeqSet) error\n```\n\n```go\nfunc (m *Mailbox) Expunge() error\n```\n\n```go\nfunc (m *Mailbox) Info() (*imap.MailboxInfo, error)\n```\n\n```go\nfunc (m *Mailbox) ListMessages(uid bool, seqset *imap.SeqSet, items []imap.FetchItem, ch chan\u003c- *imap.Message) error\n```\n\n```go\nfunc (m *Mailbox) MoveMessages(uid bool, seqset *imap.SeqSet, dest string) error\n```\n\n```go\nfunc (m *Mailbox) Name() string\n```\n\n```go\nfunc (m *Mailbox) SearchMessages(uid bool, criteria *imap.SearchCriteria) ([]uint32, error)\n```\n\n```go\nfunc (m *Mailbox) SetMessageLimit(val *uint32) error\n```\n\n```go\nfunc (m *Mailbox) SetSubscribed(subscribed bool) error\n```\n\n```go\nfunc (m *Mailbox) Status(items []imap.StatusItem) (*imap.MailboxStatus, error)\n```\n\n```go\nfunc (m *Mailbox) UidNext(tx *sql.Tx) (uint32, error)\n```\n\n```go\nfunc (m *Mailbox) UpdateMessagesFlags(uid bool, seqset *imap.SeqSet, operation imap.FlagsOp, flags []string) error\n```\n\n```go\ntype Opts struct {\n\t// Maximum amount of bytes that backend will accept.\n\t// Intended for use with APPENDLIMIT extension.\n\t// nil value means no limit, 0 means zero limit (no new messages allowed)\n\tMaxMsgBytes *uint32\n\n\t// Controls when channel returned by Updates should be created.\n\t// If set to false - channel will be created before NewBackend returns.\n\t// If set to true - channel will be created upon first call to Updates.\n\t// Second is useful for tests that don't consume values from Updates\n\t// channel.\n\tLazyUpdatesInit bool\n\n\t// Custom randomness source for UIDVALIDITY values generation.\n\tPRNG Rand\n}\n```\nOpts structure specifies additional settings that may be set for backend.\n\nPlease use names to reference structure members on creation, fields may be reordered or added without major version increment.\n\n```go\ntype Rand interface {\n\tUint32() uint32\n}\n```\n\n```go\ntype User struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (u *User) CreateMailbox(name string) error\n```\n\n```go\nfunc (u *User) CreateMessageLimit() *uint32\n```\n\n```go\nfunc (u *User) DeleteMailbox(name string) error\n```\n\n```go\nfunc (u *User) GetMailbox(name string) (backend.Mailbox, error)\n```\n\n```go\nfunc (u *User) ID() uint64\n```\n\n```go\nfunc (u *User) ListMailboxes(subscribed bool) ([]backend.Mailbox, error)\n```\n\n```go\nfunc (u *User) Logout() error\n```\n\n```go\nfunc (u *User) RenameMailbox(existingName, newName string) error\n```\n\n```go\nfunc (u *User) SetMessageLimit(val *uint32) error\n```\n\n```go\nfunc (u *User) Username() string\n```\n\n","path":"github.com/foxcpp/go-imap-sql/imap","name":"imap","synopsis":"","isRedistributable":true}
