Sends a STATUS command.
A STATUS command requests status information from the server for a specified mailbox. The requested status data items must be explicitly listed in the command. The server must send a STATUS response.
Warning: Do not use a STATUS command to get the number of messages or other status information about the currently selected mailbox. While such an action is seemingly allowed in RFC 2060, it is expressly forbidden in RFC 3501.
Example:
void foo(Imap4Client client) {
string mailboxName = "drafts";
string items = "(MESSAGES RECENT)";
client.Status(mailbox, items);
}
| Exception Type | Condition |
|---|---|
| Exception | If a network or protocol error occurs. |
Imap4Client Class | Hunny.Mail Namespace | StatusResponse | STATUS command in the IMAP4 specification