imap

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMailboxes

func NewMailboxes() *mailboxes

Types

type Client

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

func Connect

func Connect(_url *url.URL) (*Client, error)

func NewClient

func NewClient() *Client

func (*Client) Disconnect

func (cl *Client) Disconnect()

func (*Client) EnsureFolder

func (cl *Client) EnsureFolder(folder Folder) error

func (*Client) NewFolder

func (cl *Client) NewFolder(path []string) Folder

func (*Client) PutMessages

func (cl *Client) PutMessages(folder Folder, messages []string) error

func (*Client) Replace

func (cl *Client) Replace(folder Folder, header, value, newContent string, force bool) error

type Folder

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

func (Folder) Append

func (f Folder) Append(other Folder) Folder

func (Folder) String

func (f Folder) String() string

type URL

type URL struct {
	*url.URL
	// contains filtered or unexported fields
}

Our own convenience wrapper

func NewUrl

func NewUrl(url *url.URL) *URL

func (*URL) ForceTLS

func (url *URL) ForceTLS() bool

func (*URL) Port

func (url *URL) Port() string

Jump to

Keyboard shortcuts

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