Gets or sets whether to use XLIST extension which allows the application to detect special folders like Sent, Drafts, Trash.
If true, MailBee will issue XLIST command instead of LIST when the application calls DownloadFolders method. If false, regular LIST command will be used (no flags denoting special folders will be available). The default value is true if the server supports XLIST.
Even if you set this property to true, it may still return false if the server does not support XLIST. Usually, you do not need to set it explicitly as MailBee will set it to true automatically if the server supports XLIST. MailBee reads the IMAP capabilities at the moment of connecting to the server (in some cases, it can re-read the capabilities later but this does not affect XLIST extension). It's safe to assume that once Connect method finished, you can examine the value of UseXList property to determine if the server supports well-known folder types.
When UseXList is true, and you called DownloadFolders method specifying subscribedOnly=false, you can then examine Flags property of each Folder object in the retured collection for extra flags, like Drafts or Inbox.
Note XLIST extension provides XLIST command but no XLSUB command. Thus, it's not possible to get well-known folder types only for subscribed folders, so that XLIST has no effect when you call DownloadFolders method specifying subscribedOnly as true.
The most popular mail service which supports XLIST is GMail.
Imap Class | MailBee.ImapMail Namespace