Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a LIST-STATUS client.
func (*Client) ListStatus ¶
func (c *Client) ListStatus(ref, 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 (*Client) SupportListStatus ¶
SupportListStatus checks if the server supports the LIST-STATUS extension.
type ListStatus ¶
ListStatus 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 (*ListStatus) Command ¶
func (cmd *ListStatus) Command() *imap.Command
func (*ListStatus) Parse ¶
func (cmd *ListStatus) Parse(fields []interface{}) error
type ListStatusClient ¶
type ListStatusClient = Client
ListStatusClient is an alias used to compose multiple client extensions.
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
Click to show internal directories.
Click to hide internal directories.