pop3

package
v0.0.0-...-0751618 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK    = "+OK"
	ERROR = "-ERR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(address string, encryption bool) (*Client, error)

func NewClient

func NewClient(conn net.Conn, host string, encryption bool) (*Client, error)

func (*Client) Auth

func (c *Client) Auth(username, password string) error

func (*Client) Close

func (c *Client) Close() error

func (*Client) Delete

func (c *Client) Delete(number int) error

func (*Client) List

func (c *Client) List() ([]string, error)

func (*Client) MessageCount

func (c *Client) MessageCount() int

func (*Client) Password

func (c *Client) Password(password string) error

func (*Client) Retr

func (c *Client) Retr(number int) (*textproto.Reader, error)

func (*Client) Stat

func (c *Client) Stat() (string, error)

func (*Client) Username

func (c *Client) Username(username string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL