ImapClientListMessages Method (String, Boolean)

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 ImapMessageInfoCollection ListMessages(
	string folderName,
	bool retrieveRecursively
)

Parameters

folderName
Type: SystemString
Folder to retrieve messages.
retrieveRecursively
Type: SystemBoolean
Indicates, if messages have to be retrieved recursively.

Return Value

Type: ImapMessageInfoCollection
Collection of ImapMessageInfo objects
See Also