Click or drag to resize

ImapClientListMessagesAsync Method (String, Boolean, IEnumerableString)

Gets the list of messages in the specified folder

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task<ImapMessageInfoCollection> ListMessagesAsync(
	string folderName,
	bool retrieveRecursively,
	IEnumerable<string> messageExtraFields
)

Parameters

folderName
Type: SystemString
Folder to retrieve messages.
retrieveRecursively
Type: SystemBoolean
Indicates, if messages have to be retrieved recursively.
messageExtraFields
Type: System.Collections.GenericIEnumerableString
List of extra parameters for a message wich will be requested.

Return Value

Type: TaskImapMessageInfoCollection
Task object, with delegate for this operation
See Also