Versions in this module Expand all Collapse all v1 v1.0.1 Dec 6, 2021 v1.0.0 Mar 16, 2021 Changes in this version + const CommandDelete + const CommandList + const CommandNoop + const CommandPassword + const CommandQuit + const CommandReset + const CommandRetrieve + const CommandStat + const CommandUser + const ERR + const OK + func IsErr(s string) bool + func IsOK(s string) bool + type Client struct + func Dial(addr string) (c *Client, err error) + func DialTLS(addr string) (c *Client, err error) + func NewClient(conn net.Conn) (*Client, error) + func (c *Client) Authorization(user, pass string) error + func (c *Client) Dele(msg int) error + func (c *Client) ListAll() (list []MessageList, err error) + func (c *Client) Noop() error + func (c *Client) Quit() error + func (c *Client) Retr(msg int) (*enmime.Envelope, error) + func (c *Client) Rset() error + func (c *Client) Stat() (count, size int, err error) + type Connection struct + Reader *textproto.Reader + Writer *textproto.Writer + func NewConnection(conn io.ReadWriteCloser) *Connection + func (c *Connection) Close() error + func (c *Connection) Cmd(format string, args ...interface{}) (string, error) + func (c *Connection) ReadLine() (string, error) + func (c *Connection) ReadLines() (lines []string, err error) + type MessageList struct + ID int + Size int