Versions in this module Expand all Collapse all v0 v0.0.3 Jul 7, 2022 Changes in this version + var GenerateBufferSize = 100000 + func DeleteEmails(info MailboxInfo, uids []uint32) error + func GenerateAll(info MailboxInfo, markAsRead, delete bool) (chan Response, error) + func GenerateBefore(info MailboxInfo, before time.Time, markAsRead, delete bool) (chan Response, error) + func GenerateBetween(info MailboxInfo, fromUid uint64, toUid uint64, markAsRead, delete bool) (chan Response, error) + func GenerateCommand(info MailboxInfo, IMAPCommand string, markAsRead, delete bool) (chan Response, error) + func GenerateOn(info MailboxInfo, on time.Time, markAsRead, delete bool) (chan Response, error) + func GenerateSince(info MailboxInfo, since time.Time, markAsRead, delete bool) (chan Response, error) + func GenerateUnread(info MailboxInfo, markAsRead, delete bool) (chan Response, error) + func GetMailboxStatus(info MailboxInfo) (*imap.MailboxStatus, error) + func MarkAsUnread(info MailboxInfo, uids []uint32) error + func ValidateMailboxInfo(info MailboxInfo) error + func VisibleText(body io.Reader) ([][]byte, error) + type Email struct + From *mail.Address + HTML []byte + InternalDate time.Time + IsMultiPart bool + Message *mail.Message + Precedence string + Subject string + Text []byte + To []*mail.Address + UID uint32 + func GetAll(info MailboxInfo, markAsRead, delete bool) ([]Email, error) + func GetCommand(info MailboxInfo, IMAPCommand string, markAsRead, delete bool) ([]Email, error) + func GetSince(info MailboxInfo, since time.Time, markAsRead, delete bool) ([]Email, error) + func GetUnread(info MailboxInfo, markAsRead, delete bool) ([]Email, error) + func NewEmail(msgFields imap.FieldMap) (Email, error) + func (e *Email) String(skipBody bool) string + func (e *Email) VisibleText() ([][]byte, error) + type MailboxInfo struct + Folder string + Host string + InsecureSkipVerify bool + Pwd string + ReadOnly bool + TLS bool + User string + type Response struct + Email Email + Err error