ImapClientListMessages Method (IConnection, String, Int64, 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 ImapMessageInfoCollection ListMessages(
	IConnection connection,
	string folderName,
	long modificationSequence,
	bool retrieveRecursively,
	IEnumerable<string> messageExtraFields
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
folderName
Type: SystemString
Folder to retrieve messages.
modificationSequence
Type: SystemInt64
Modification sequence
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: ImapMessageInfoCollection
Collection of ImapMessageInfo objects
See Also