enable

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

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 3 Imported by: 0

README

go-imap-enable

GoDoc

The IMAP ENABLE Extension for go-imap.

This extension has been merged into go-imap. Use built-in support instead of this repository!

License

MIT

Documentation

Overview

Implements the IMAP ENABLE extension, as defined in RFC 5161.

Index

Constants

View Source
const Capability = "ENABLE"

The ENABLE capability name.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(c *client.Client) *Client

func (*Client) Enable

func (c *Client) Enable(caps []string) ([]string, error)

func (*Client) SupportEnable

func (c *Client) SupportEnable() (bool, error)

type Command

type Command struct {
	Capabilities []string
}

An ENABLE command, defined in RFC 5161 section 3.1.

func (*Command) Command

func (cmd *Command) Command() *imap.Command

func (*Command) Parse

func (cmd *Command) Parse(fields []interface{}) error

type EnableClient

type EnableClient = Client

EnableClient is an alias used to compose multiple client extensions.

type Response

type Response struct {
	Capabilities []string
}

An ENABLE response, defined in RFC 5161 section 3.2.

func (*Response) Handle

func (r *Response) Handle(resp imap.Resp) error

func (*Response) WriteTo

func (r *Response) WriteTo(w *imap.Writer) error

Jump to

Keyboard shortcuts

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