Documentation ¶
Index ¶
- Variables
- func VisibleText(body io.Reader) ([][]byte, error)
- type Client
- func (c *Client) DeleteEmail(email Email) error
- func (c *Client) GenerateAll(markAsRead, delete bool) (chan Response, error)
- func (c *Client) GenerateSince(since time.Time, markAsRead, delete bool) (chan Response, error)
- func (c *Client) GenerateUnread(markAsRead, delete bool) (chan Response, error)
- func (c *Client) GetAll(markAsRead, delete bool) ([]Email, error)
- func (c *Client) GetSince(since time.Time, markAsRead, delete bool) ([]Email, error)
- func (c *Client) GetUnread(markAsRead, delete bool) ([]Email, error)
- func (c *Client) SetAsRead(email Email) error
- func (c *Client) SetAsUnread(email Email) error
- type Email
- type Option
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var GenerateBufferSize = 100
Functions ¶
Types ¶
type Client ¶
type Client struct { TLS bool Folder string // Read only mode, false (original logic) if not initialized ReadOnly bool Imap *imap.Client }
MailboxInfo holds onto the credentials and other information. needed for connecting to an IMAP server.
func (*Client) DeleteEmail ¶
func (*Client) GenerateAll ¶
GenerateAll will find all emails in the email folder and pass them along to the responses channel.
func (*Client) GenerateSince ¶
GenerateSince will find all emails that have an internal date after the given time and pass them along to the responses channel.
func (*Client) GenerateUnread ¶
GenerateUnread will find all unread emails in the folder and pass them along to the responses channel.
func (*Client) GetAll ¶
GetAll will pull all emails from the email folder and return them as a list.
func (*Client) GetSince ¶
GetSince will pull all emails that have an internal date after the given time.
func (*Client) GetUnread ¶
GetUnread will find all unread emails in the folder and return them as a list.
func (*Client) SetAsUnread ¶
Click to show internal directories.
Click to hide internal directories.