Versions in this module Expand all Collapse all v0 v0.1.0 Dec 10, 2020 Changes in this version + const ATOP + const DELE + const ERR + const LIST + const NOOP + const OK + const PASS + const QUIT + const RETR + const RSET + const STAT + const TOP + const UIDL + const USER + func IsErr(s string) bool + func IsOK(s string) bool + type Client struct + func Dial(address string) (c *Client, err error) + func DialTLS(address string) (c *Client, err error) + func NewClient(conn net.Conn) (c *Client, err error) + func (c *Client) Auth(u, p string) (err error) + func (c *Client) Cmd(format string, args ...interface{}) (line string, err error) + func (c *Client) Dele(msg int) (err error) + func (c *Client) List(msg int) (list MessageList, err error) + func (c *Client) ListAll() (list []MessageList, err error) + func (c *Client) Noop() (err error) + func (c *Client) Pass(p string) (err error) + func (c *Client) Quit() (err error) + func (c *Client) ReadLine() (line string, err error) + func (c *Client) ReadLines() (lines []string, err error) + func (c *Client) Retr(msg int) (m *mail.Message, err error) + func (c *Client) Rset() (err error) + func (c *Client) Send(format string, args ...interface{}) (err error) + func (c *Client) Stat() (count, size int, err error) + func (c *Client) Top(msg int, n int) (m *mail.Message, err error) + func (c *Client) Uidl(msg int) (list MessageUidl, err error) + func (c *Client) UidlAll() (list []MessageUidl, err error) + func (c *Client) User(u string) (err error) + type MessageList struct + ID int + Size int + type MessageUidl struct + ID int + UID string