pop3

package module
v0.0.0-...-fafd5d8 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2013 License: MIT Imports: 8 Imported by: 0

README

pop3

Pop3 protocol implement in go.

This package is fairly straightforward, please check example.

About

pop3 is written in Google Go.

pop3 is open source software released under the MIT License.

Documentation

Index

Constants

View Source
const (
	CRLF = "\r\n"

	USER     = "USER"
	PASSWORD = "PASS"
	NOOP     = "NOOP"
	RESET    = "RSET"
	DELETE   = "DELE"
	QUIT     = "QUIT"
	STATUS   = "STAT"
	LIST     = "LIST"
	RETRIEVE = "RETR"
)

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(addr string) (client *Client, err error)

func DialTLS

func DialTLS(addr string) (client *Client, err error)

func (*Client) AuthBasic

func (c *Client) AuthBasic(user, pass string) error

func (*Client) Delete

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

func (*Client) List

func (c *Client) List(index int) (int, int, error)

func (*Client) ListAll

func (c *Client) ListAll() ([]int, error)

func (*Client) Noop

func (c *Client) Noop() error

func (*Client) Pass

func (c *Client) Pass(secret string) error

func (*Client) Quit

func (c *Client) Quit() error

func (*Client) Reset

func (c *Client) Reset() error

func (*Client) Retrieve

func (c *Client) Retrieve(index int) ([]byte, error)

func (*Client) Status

func (c *Client) Status() (int, int, error)

func (*Client) User

func (c *Client) User(name string) error

type Pop3Error

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

func (Pop3Error) Error

func (pe Pop3Error) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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