Hunny Software Library Reference

Imap4Client.Status Method 

Sends a STATUS command.

[Visual Basic]
Public Sub Status( _
   ByVal mailboxName As String, _
   ByVal items As String _
)
[C#]
public void Status(
   string mailboxName,
   string items
);

Parameters

mailboxName
The name of the mailbox to query.
items
A parenthesized list of query items.

Remarks

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);
            }
            

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

Imap4Client Class | Hunny.Mail Namespace | StatusResponse | STATUS command in the IMAP4 specification