Sends a LIST command.
The LIST command requests the server to return a list of all names that match a specified pattern. The server responds by sending zero or more LIST responses.
Note: The names returned by the server are not necessarily the names of valid mailboxes. Some servers will list all the files in a directory whether or not those files are valid mailbox files.
Warning: The number of responses returned by the server could potentially be very large if wildcards are used, especially when the "*" wildcard is used. Developers are urged to use the list command carefully, and to prefer the "%" wildcard over the "*" wildcard.
| Exception Type | Condition |
|---|---|
| Exception | If a network or protocol error occurs. |
Imap4Client Class | Hunny.Mail Namespace | ListResponse | LIST command in the IMAP4 specification