Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Capability() (caps []string, err error)
- func (c *Client) Close()
- func (c *Client) Done() (err error)
- func (c *Client) FetchRFC822(seqs []int, peek bool) (result map[int]*FetchResult, err error)
- func (c *Client) FetchRFC822Header(seqs []int, peek bool) (result map[int]*FetchResult, err error)
- func (c *Client) GetSelectedMailboxInfo() (info MailboxInfo)
- func (c *Client) Idle() (err error)
- func (c *Client) Login(user string, pass string) (err error)
- func (c *Client) Logout() (err error)
- func (c *Client) Noop() (err error)
- func (c *Client) Search(criteria string) (seqs []int, err error)
- func (c *Client) Select(name string) (info *MailboxInfo, err error)
- func (c *Client) StartTLS(hostname string) (err error)
- type FetchResult
- type MailboxInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrResultNo means that NO response is received. ErrResultNo = errors.New("result NO") // ErrResultBad means that BAD response is received. ErrResultBad = errors.New("result BAD") )
View Source
var ( // ErrConnDead means that conn is dead. ErrConnDead = errors.New("conn dead") )
View Source
var ( // ErrNilRep means that nil response is received. ErrNilRep = errors.New("nil response") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { UpdateCallback func() Debug io.Writer // contains filtered or unexported fields }
Client is an IMAP client.
func (*Client) Capability ¶
Capability performs CAPIBILITY command.
func (*Client) FetchRFC822 ¶
FetchRFC822 performs FETCH command to fetch RFC822 data.
func (*Client) FetchRFC822Header ¶
FetchRFC822Header performs FETCH command to fetch RFC822.HEADER data.
func (*Client) GetSelectedMailboxInfo ¶
func (c *Client) GetSelectedMailboxInfo() (info MailboxInfo)
GetSelectedMailboxInfo gets current selected mailbox's info.
type FetchResult ¶
FetchResult contains the response of FETCH command.
Click to show internal directories.
Click to hide internal directories.