Versions in this module Expand all Collapse all v0 v0.9.0 Jan 18, 2020 Changes in this version + const GenerateBufferSize + func Validate(s *models.IMAP) error + type Client interface + Close func(expunge bool) (cmd *imap.Command, err error) + Login func(username, password string) (cmd *imap.Command, err error) + Logout func(timeout time.Duration) (cmd *imap.Command, err error) + Select func(mbox string, readonly bool) (cmd *imap.Command, err error) + UIDFetch func(seq *imap.SeqSet, items ...string) (cmd *imap.Command, err error) + UIDSearch func(spec ...imap.Field) (cmd *imap.Command, err error) + UIDStore func(seq *imap.SeqSet, item string, value imap.Field) (cmd *imap.Command, err error) + type Email struct + UID uint32 + func NewEmail(msgFields imap.FieldMap) (Email, error) + type Mailbox struct + Folder string + Host string + Pwd string + ReadOnly bool + TLS bool + User string + func (mbox *Mailbox) DeleteEmails(uids []uint32) error + func (mbox *Mailbox) GenerateAll(markAsRead, delete bool) (chan Response, error) + func (mbox *Mailbox) GenerateUnread(markAsRead, delete bool) (chan Response, error) + func (mbox *Mailbox) GetAll(markAsRead, delete bool) ([]Email, error) + func (mbox *Mailbox) GetUnread(markAsRead, delete bool) ([]Email, error) + func (mbox *Mailbox) MarkAsUnread(uids []uint32) error + type Monitor struct + func NewMonitor() *Monitor + func (im *Monitor) Shutdown() error + func (im *Monitor) Start() error + type Response struct + Email Email + Err error