Versions in this module Expand all Collapse all v1 v1.1.2 Apr 17, 2023 v1.1.1 Apr 17, 2023 Changes in this version + var EOF = errors.New("skip the all mail remaining") + func DoPop3(address, user, pass string) bool + func ReceiveMail(addr, user, pass string, receiveFn ReceiveMailFunc) error + type Client struct + Text *Conn + func Dial(addr string) (*Client, error) + func NewClient(conn net.Conn) (*Client, error) + func (c *Client) Close() error + func (c *Client) Dele(number int) error + func (c *Client) List(number int) (int, uint64, error) + func (c *Client) ListAll() ([]MessageInfo, error) + func (c *Client) Noop() error + func (c *Client) Pass(pass string) error + func (c *Client) Quit() error + func (c *Client) Retr(number int) (string, error) + func (c *Client) Rset() error + func (c *Client) Stat() (int, uint64, error) + func (c *Client) Uidl(number int) (int, string, error) + func (c *Client) UidlAll() ([]MessageInfo, error) + func (c *Client) User(user string) error + type Conn struct + func NewConn(conn io.ReadWriteCloser) *Conn + func (c *Conn) Close() error + type MessageInfo struct + Number int + Size uint64 + Uid string + type Reader struct + R *textproto.Reader + func NewReader(r *bufio.Reader) *Reader + func (r *Reader) ReadLine() (string, error) + func (r *Reader) ReadLines() ([]string, error) + func (r *Reader) ReadResponse() (string, error) + func (r *Reader) ReadToPeriod() (string, error) + type ReceiveMailFunc func(number int, uid, data string, err error) (bool, error) + type ResponseError string + func (r ResponseError) Error() string + type Writer struct + W *bufio.Writer + func NewWriter(w *bufio.Writer) *Writer + func (w *Writer) WriteLine(format string, args ...interface{}) error