mirror of
https://github.com/emersion/go-imap
synced 2026-07-01 20:24:44 +00:00
29 lines
612 B
Go
29 lines
612 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
|
|
|
|
ReturnSubscribed bool
|
|
ReturnChildren bool
|
|
ReturnStatus []StatusItem // requires IMAP4rev2 or LIST-STATUS
|
|
}
|
|
|
|
// 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
|
|
}
|