responses

package
v0.0.0-...-840b16b Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

IMAP responses defined in RFC 3501.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticate

type Authenticate struct {
	Mechanism       sasl.Client
	InitialResponse []byte
	Writer          *imap.Writer
}

An AUTHENTICATE response.

func (*Authenticate) HandleFrom

func (r *Authenticate) HandleFrom(hdlr imap.RespHandler) (err error)

type Capability

type Capability struct {
	Caps []string
}

A CAPABILITY response. See RFC 3501 section 7.2.1

func (*Capability) HandleFrom

func (r *Capability) HandleFrom(hdlr imap.RespHandler) (err error)

func (*Capability) WriteTo

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

type Expunge

type Expunge struct {
	SeqNums chan uint32
}

An EXPUNGE response. See RFC 3501 section 7.4.1

func (*Expunge) HandleFrom

func (r *Expunge) HandleFrom(hdlr imap.RespHandler) error

func (*Expunge) WriteTo

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

type Fetch

type Fetch struct {
	Messages chan *imap.Message
}

A FETCH response. See RFC 3501 section 7.4.2

func (*Fetch) HandleFrom

func (r *Fetch) HandleFrom(hdlr imap.RespHandler) error

func (*Fetch) WriteTo

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

type List

type List struct {
	Mailboxes  chan *imap.MailboxInfo
	Subscribed bool
}

A LIST response. If Subscribed is set to true, LSUB will be used instead. See RFC 3501 section 7.2.2

func (*List) HandleFrom

func (r *List) HandleFrom(hdlr imap.RespHandler) error

func (*List) Name

func (r *List) Name() string

func (*List) WriteTo

func (r *List) WriteTo(w *imap.Writer) error
type Search struct {
	Ids []uint32
}

A SEARCH response. See RFC 3501 section 7.2.5

func (*Search) HandleFrom

func (r *Search) HandleFrom(hdlr imap.RespHandler) (err error)

func (*Search) WriteTo

func (r *Search) WriteTo(w *imap.Writer) (err error)

type Select

type Select struct {
	Mailbox *imap.MailboxStatus
}

A SELECT response.

func (*Select) HandleFrom

func (r *Select) HandleFrom(hdlr imap.RespHandler) (err error)

func (*Select) WriteTo

func (r *Select) WriteTo(w *imap.Writer) (err error)

type Status

type Status struct {
	Mailbox *imap.MailboxStatus
}

A STATUS response. See RFC 3501 section 7.2.4

func (*Status) HandleFrom

func (r *Status) HandleFrom(hdlr imap.RespHandler) error

func (*Status) WriteTo

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

Jump to

Keyboard shortcuts

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