Documentation ¶
Index ¶
- func New(ldap *ldap.Connection, userRepo *repository.UserRepository, ...) *mongoBackend
- type ImapMailbox
- func (i *ImapMailbox) Close() error
- func (i *ImapMailbox) CopyMessages(uid bool, seqset *imap.SeqSet, dest string) error
- func (i *ImapMailbox) Expunge() error
- func (i *ImapMailbox) Info() (*imap.MailboxInfo, error)
- func (i *ImapMailbox) ListMessages(uid bool, seqset *imap.SeqSet, items []imap.FetchItem, ch chan<- *imap.Message) error
- func (i *ImapMailbox) Name() string
- func (i *ImapMailbox) Poll(expunge bool) error
- func (i *ImapMailbox) SearchMessages(uid bool, criteria *imap.SearchCriteria) ([]uint32, error)
- func (i *ImapMailbox) Status(items []imap.StatusItem) (*imap.MailboxStatus, error)
- func (i *ImapMailbox) UpdateMessagesFlags(uid bool, seqset *imap.SeqSet, operation imap.FlagsOp, silent bool, ...) error
- type ImapUser
- func (i *ImapUser) CreateMailbox(name string) error
- func (i *ImapUser) CreateMessage(mbox string, flags []string, date time.Time, body imap.Literal, ...) error
- func (i *ImapUser) DeleteMailbox(name string) error
- func (i *ImapUser) GetMailbox(name string, readOnly bool, conn backend.Conn) (*imap.MailboxStatus, backend.Mailbox, error)
- func (i *ImapUser) ListMailboxes(subscribed bool) ([]imap.MailboxInfo, error)
- func (i *ImapUser) Logout() error
- func (i *ImapUser) Namespaces() (personal, other, shared []namespace.Namespace, err error)
- func (i *ImapUser) RenameMailbox(existingName, newName string) error
- func (i *ImapUser) SetSubscribed(mbox string, subscribed bool) error
- func (i *ImapUser) Status(mbox string, items []imap.StatusItem) (*imap.MailboxStatus, error)
- func (i *ImapUser) Username() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( ldap *ldap.Connection, userRepo *repository.UserRepository, mailboxRepo *repository.MailboxRepository, messageRepo *repository.MessageRepository, ) *mongoBackend
Types ¶
type ImapMailbox ¶
type ImapMailbox struct {
// contains filtered or unexported fields
}
func NewMailbox ¶
func NewMailbox( userRepo *repository.UserRepository, mailboxRepo *repository.MailboxRepository, messageRepo *repository.MessageRepository, id string, name string, owner string, username string, readonly bool, conn backend.Conn, ) (*ImapMailbox, error)
func (*ImapMailbox) Close ¶
func (i *ImapMailbox) Close() error
func (*ImapMailbox) CopyMessages ¶
func (i *ImapMailbox) CopyMessages(uid bool, seqset *imap.SeqSet, dest string) error
func (*ImapMailbox) Expunge ¶
func (i *ImapMailbox) Expunge() error
func (*ImapMailbox) Info ¶
func (i *ImapMailbox) Info() (*imap.MailboxInfo, error)
func (*ImapMailbox) ListMessages ¶
func (i *ImapMailbox) ListMessages(uid bool, seqset *imap.SeqSet, items []imap.FetchItem, ch chan<- *imap.Message) error
func (*ImapMailbox) Name ¶
func (i *ImapMailbox) Name() string
func (*ImapMailbox) Poll ¶
func (i *ImapMailbox) Poll(expunge bool) error
func (*ImapMailbox) SearchMessages ¶
func (i *ImapMailbox) SearchMessages(uid bool, criteria *imap.SearchCriteria) ([]uint32, error)
func (*ImapMailbox) Status ¶
func (i *ImapMailbox) Status(items []imap.StatusItem) (*imap.MailboxStatus, error)
func (*ImapMailbox) UpdateMessagesFlags ¶
func (i *ImapMailbox) UpdateMessagesFlags(uid bool, seqset *imap.SeqSet, operation imap.FlagsOp, silent bool, flags []string) error
type ImapUser ¶
type ImapUser struct {
// contains filtered or unexported fields
}
func NewUser ¶
func NewUser( userRepo *repository.UserRepository, mailboxRepo *repository.MailboxRepository, messageRepo *repository.MessageRepository, userInfo *ldap.UserInfo, ) *ImapUser
func (*ImapUser) CreateMailbox ¶
func (*ImapUser) CreateMessage ¶
func (*ImapUser) DeleteMailbox ¶
func (*ImapUser) GetMailbox ¶
func (*ImapUser) ListMailboxes ¶
func (*ImapUser) Namespaces ¶
func (*ImapUser) RenameMailbox ¶
func (*ImapUser) SetSubscribed ¶
Click to show internal directories.
Click to hide internal directories.