Documentation
¶
Index ¶
- Constants
- type Backend
- type Mailbox
- func (m *Mailbox) Check() error
- func (m *Mailbox) Close() 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) 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) Name() string
- func (m *Mailbox) SearchMessages(uid bool, criteria *imap.SearchCriteria) ([]uint32, error)
- func (m *Mailbox) SetSubscribed(subscribed bool) error
- func (m *Mailbox) Status(items []imap.StatusItem) (*imap.MailboxStatus, error)
- func (m *Mailbox) UpdateMessagesFlags(uid bool, seqset *imap.SeqSet, operation imap.FlagsOp, flags []string) error
- type User
- func (u *User) CreateMailbox(mbox string) error
- func (u *User) DeleteMailbox(mbox string) error
- func (u *User) GetMailbox(mbox string) (backend.Mailbox, error)
- 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) Username() string
Constants ¶
View Source
const ( InboxName = "INBOX" HierarchySep = "." MaxMboxNesting = 100 IndexFile = "imapmaildir-index.db" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { Log *log.Logger Debug *log.Logger PathTemplate string Authenticator func(*imap.ConnInfo, string, string) (bool, error) // contains filtered or unexported fields }
func (*Backend) CreateUser ¶
type Mailbox ¶
type Mailbox struct {
// contains filtered or unexported fields
}
func (*Mailbox) CopyMessages ¶
func (*Mailbox) CreateMessage ¶
func (*Mailbox) ListMessages ¶
func (*Mailbox) SearchMessages ¶
func (*Mailbox) SetSubscribed ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) CreateMailbox ¶
func (*User) DeleteMailbox ¶
func (*User) ListMailboxes ¶
func (*User) RenameMailbox ¶
Click to show internal directories.
Click to hide internal directories.