metadata

package module
v0.0.0-...-9d939d2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 5 Imported by: 2

README

go-imap-metadata

IMAP METADATA extension for go-imap

License

MIT

Documentation

Overview

Package metadata implements the IMAP METADATA extension.

IMAP METADATA is defined in RFC 5464.

Index

Constants

View Source
const Capability = "METADATA"

Capability is the IMAP METADATA capbility.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a METADATA client.

func NewClient

func NewClient(c *client.Client) *Client

func (*Client) GetMetadata

func (c *Client) GetMetadata(mbox string, entries []string, options *GetMetadataOptions) (map[string]string, error)

func (*Client) SetMetadata

func (c *Client) SetMetadata(mbox string, entries map[string]string) error

func (*Client) SupportMetadata

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

type GetMetadataCommand

type GetMetadataCommand struct {
	Mailbox string
	Entries []string
	Options *GetMetadataOptions
}

func (*GetMetadataCommand) Command

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

type GetMetadataOptions

type GetMetadataOptions struct{}

type MetadataResponse

type MetadataResponse struct {
	Mailbox string
	Entries map[string]string
}

func (*MetadataResponse) Handle

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

type SetMetadataCommand

type SetMetadataCommand struct {
	Mailbox string
	Entries map[string]string
}

func (*SetMetadataCommand) Command

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

Jump to

Keyboard shortcuts

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