namespace

package module
v0.0.0-...-93092ad Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 5 Imported by: 4

README

go-imap-namespace

go.dev reference

NAMESPACE extension for go-imap

License

MIT

Documentation

Index

Constants

View Source
const Capability = "NAMESPACE"

Variables

This section is empty.

Functions

func NewExtension

func NewExtension() server.Extension

Types

type Client

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

func NewClient

func NewClient(c *client.Client) Client

func (Client) Namespaces

func (c Client) Namespaces() (personal, other, shared []Namespace, err error)

type Command

type Command struct{}

func (Command) Command

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

func (Command) Parse

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

type Handler

type Handler struct {
	Command
}

func (*Handler) Handle

func (h *Handler) Handle(conn server.Conn) error

type Namespace

type Namespace struct {
	Prefix    string
	Delimiter string
}

type Response

type Response struct {
	Personal []Namespace
	Other    []Namespace
	Shared   []Namespace
}

func (*Response) Handle

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

func (*Response) Parse

func (r *Response) Parse(fields []interface{}) error

func (Response) WriteTo

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

type User

type User interface {
	Namespaces() (personal, other, shared []Namespace, err error)
}

Jump to

Keyboard shortcuts

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