MailBee.NET Objects 7.1

Imap.GetServerResponses Method 

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

public string[] GetServerResponses(
   string responseName
);

Parameters

responseName
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

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

Imap Class | MailBee.ImapMail Namespace