Hunny Software Library Reference

Imap4Client.Select Method 

Sends a SELECT command.

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

Parameters

mailboxName
The name of the mailbox to select.

Remarks

A SELECT command takes one parameter: the name of a mailbox (often called a mail "folder"). In response to a SELECT command, the server is required to send a FLAGS response, an EXISTS response, and a RECENT response. The server may optionally send OK responses with UNSEEN or PERMANENTFLAGS response codes.

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

Imap4Client Class | Hunny.Mail Namespace | FlagsResponse | ExistsResponse | RecentResponse | OkResponse | SELECT command in the IMAP4 specification