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: 11.2.0 build 590 for .NET 4.5
Syntax
public string[] GetServerResponses(
	string responseName
)

Parameters

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.
Remarks

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