Versions in this module Expand all Collapse all v0 v0.1.0 Jul 4, 2026 Changes in this version + type APIError struct + HasRetryAfter bool + Message string + RetryAfter int + StatusCode int + func (e *APIError) Error() string + type Address struct + Email string + Name string + type Attachment struct + ContentType string + Filename string + Size int + type AttachmentData struct + ContentType string + Data []byte + Filename string + type Client struct + func New(baseURL, apiKey string) *Client + func (c *Client) Attachment(folder string, uid int, index int) (*AttachmentData, error) + func (c *Client) DeleteMessage(folder string, uid int) error + func (c *Client) Folders() ([]Folder, error) + func (c *Client) Message(folder string, uid int) (*Message, error) + func (c *Client) Messages(opts MessagesOptions) ([]MessageHeader, error) + func (c *Client) Search(folder, q string) ([]MessageHeader, error) + func (c *Client) Send(req SendRequest) (*SendResponse, error) + func (c *Client) SetFlag(req SetFlagRequest) error + func (c *Client) WithHTTPClient(hc *http.Client) *Client + type Flag string + const FlagAnswered + const FlagDeleted + const FlagDraft + const FlagFlagged + const FlagSeen + type Folder struct + Attributes []string + Name string + type Message struct + Attachments []Attachment + HTML string + Text string + type MessageHeader struct + Date string + Flags []string + From []Address + Preview string + Seen bool + Size uint32 + Subject string + To []Address + UID uint32 + type MessagesOptions struct + Folder string + Limit int + type SendRequest struct + Bcc []string + Cc []string + HTML string + Subject string + Text string + To []string + type SendResponse struct + Status string + type SetFlagRequest struct + Flag Flag + Folder string + Set bool + UID int + type StatusResponse struct + Status string