ImapGetServerResponses Method
Returns the specified individual responses from the last group of responses received from the server.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
public string[] GetServerResponses(
	string responseName


Type: SystemString
The name (case-insensitive) of the individual responses to be returned, or a null reference (Nothing in Visual Basic) if all available responses should be returned.

Return Value

Type: String
Array of strings containing the responses with the given name, or an empty array if not connected to the server.

The IMAP4 server may return multiple responses to a single request from the client. While GetServerResponse method returns the very last response, GetServerResponses(String) method can be used to obtain any of the responses returned as the result of the last executed command.

The typical names of IMAP4 responses are: OK, BAD, FETCH, SEARCH, LIST, etc. This method can return both tagged and untagged responses. See the IMAP4 protocol specification (RFC3501) for more information regarding IMAP4 responses.

Note Note
Some items in the returned array can be a null reference (Nothing in Visual Basic) if their corresponding responses were considered large (a downloaded e-mail or envelope) and removed from memory to avoid wasting resources. This is applicable only to FETCH responses containing message envelope data. Unilateral FETCH responses won't be removed.
See Also