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 }