Files
go-imap/list.go
T
Tim CulverhouseandGitHub 8d3dfeb83a imapclient: add SPECIAL-USE LIST option support
Servers are allowed to optionally send SPECIAL-USE mailbox attributes.
Add support for clients to explicitly request that SPECIAL-USE
attributes be sent.

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2023-08-07 22:05:55 +02:00

31 lines
722 B
Go

package imap
// ListOptions contains options for the LIST command.
type ListOptions struct {
SelectSubscribed bool
SelectRemote bool
SelectRecursiveMatch bool // requires SelectSubscribed to be set
SelectSpecialUse bool // requires SPECIAL-USE
ReturnSubscribed bool
ReturnChildren bool
ReturnStatus *StatusOptions // requires IMAP4rev2 or LIST-STATUS
ReturnSpecialUse bool // requires SPECIAL-USE
}
// ListData is the mailbox data returned by a LIST command.
type ListData struct {
Attrs []MailboxAttr
Delim rune
Mailbox string
// Extended data
ChildInfo *ListDataChildInfo
OldName string
Status *StatusData
}
type ListDataChildInfo struct {
Subscribed bool
}