imap

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2014 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	IdleTimeout = 29 * time.Minute
)

Variables

View Source
var (
	DefaultLogger  = log.New(os.Stderr, "[imap ] ", log.LstdFlags)
	DefaultLogMask = imap.LogConn | imap.LogCmd
)

Functions

This section is empty.

Types

type ImapClient

type ImapClient struct {
	Host     string
	Port     uint
	Ssl      bool
	Username string
	Password string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(host string, port uint, ssl bool, username string, password string) *ImapClient

func (*ImapClient) Addr

func (c *ImapClient) Addr() string

func (*ImapClient) Connect

func (c *ImapClient) Connect() error

func (*ImapClient) Disconnect

func (c *ImapClient) Disconnect()

func (*ImapClient) Incoming

func (c *ImapClient) Incoming() (messages []string, err error)

func (*ImapClient) Select

func (c *ImapClient) Select(mailbox string) error

func (*ImapClient) Unseen

func (c *ImapClient) Unseen() (messages []string, err error)

Jump to

Keyboard shortcuts

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