extensions

package
v0.0.0-...-0798a42 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListStatusClient

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

A LIST-STATUS client

func NewListStatusClient

func NewListStatusClient(c *client.Client) *ListStatusClient

func (*ListStatusClient) ListStatus

func (c *ListStatusClient) ListStatus(
	ref string,
	name string,
	items []imap.StatusItem,
	ch chan *imap.MailboxInfo,
) ([]*imap.MailboxStatus, error)

ListStatus performs a LIST-STATUS command, listing mailboxes and also retrieving the requested status items. A nil channel can be passed in order to only retrieve the STATUS responses

func (*ListStatusClient) SupportListStatus

func (c *ListStatusClient) SupportListStatus() (bool, error)

SupportListStatus checks if the server supports the LIST-STATUS extension.

type ListStatusCommand

type ListStatusCommand struct {
	Reference string
	Mailbox   string

	Subscribed bool
	Items      []imap.StatusItem
}

ListStatusCommand is a LIST command, as defined in RFC 3501 section 6.3.8. If Subscribed is set to true, LSUB will be used instead. Mailbox statuses will be returned if Items is not nil

func (*ListStatusCommand) Command

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

type ListStatusResponse

type ListStatusResponse struct {
	Mailboxes  chan *imap.MailboxInfo
	Subscribed bool
	Statuses   []*imap.MailboxStatus
}

A LIST-STATUS response

func (*ListStatusResponse) Handle

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

func (*ListStatusResponse) Name

func (r *ListStatusResponse) Name() string

func (*ListStatusResponse) WriteTo

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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