ImapClientListMessages Method (IConnection, String, IEnumerableInt32)

Lists the messages. Gets an information for earch message

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public ImapMessageInfoCollection ListMessages(
	IConnection connection,
	string folderName,
	IEnumerable<int> sequenceNumberLst
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
folderName
Type: SystemString
Folder to retrieve messages.
sequenceNumberLst
Type: System.Collections.GenericIEnumerableInt32
sequenceNumber list for ImapMessageInfo to retrieve from a server.

Return Value

Type: ImapMessageInfoCollection
ImapMessageInfoCollection
Remarks
Note that messages marked as deleted are not listed
See Also