Versions in this module Expand all Collapse all v0 v0.0.4 Feb 16, 2021 v0.0.3 Feb 7, 2021 v0.0.2 Feb 7, 2021 v0.0.1 Feb 7, 2021 Changes in this version + const IMAPDateFormat + var MailboxInfoSpec = conf.SectionSpec + type Client struct + IMAP *imap.Client + func Connect(info Config) (*Client, error) + func (cli *Client) FetchUIDs(ctx context.Context, seq *imap.SeqSet) (chan Response, error) + func (cli *Client) SearchUIDs(search string, since time.Time) ([]uint32, error) + type Config struct + Folder string + Host string + InsecureSkipVerify bool + Password string + ReadOnly bool + TLS bool + User string + type EMail struct + From *mail.Address + InternalDate time.Time + Precedence string + Raw *mail.Message + Subject string + To []*mail.Address + UID uint32 + func MailFromFields(ctx context.Context, fields imap.FieldMap) (*EMail, error) + type MultiPart struct + Body []byte + Children []MultiPart + FileName string + Inline bool + MimeType string + func ParseMIMEBody(ctx context.Context, partHeader textproto.MIMEHeader, rawBody io.Reader) (*MultiPart, error) + func (mp *MultiPart) FindByFilename(name string) []*MultiPart + func (mp *MultiPart) FindByFilenameRegex(re *regexp.Regexp) []*MultiPart + func (mp *MultiPart) FindByMIME(mimeType string) []*MultiPart + func (mp *MultiPart) IsMultiPart() bool + type Response struct + Err error