unselect

package module
v0.0.0-...-4c2c484 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: 1

README

go-imap-unselect

GoDoc

The IMAP UNSELECT 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 UNSELECT Extension, defined in RFC 3691.

Index

Constants

View Source
const Capability = "UNSELECT"

Variables

This section is empty.

Functions

func NewExtension

func NewExtension() server.Extension

Types

type Client

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

Client is an UNSELECT client.

func NewClient

func NewClient(c *client.Client) *Client

NewClient creates a new client.

func (*Client) SupportUnselect

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

SupportUnselect checks if the server supports the UNSELECT extension.

func (*Client) Unselect

func (c *Client) Unselect() error

Unselect frees server's resources associated with the selected mailbox and returns the server to the authenticated state. This command performs the same actions as Close, except that no messages are permanently removed from the currently selected mailbox.

type Command

type Command struct{}

An UNSELECT command. See RFC 3691 section 2.

func (*Command) Command

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

func (*Command) Parse

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

Jump to

Keyboard shortcuts

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