Pop3ClientListMessagesAsync Method (Pop3ListFields, Boolean, MailQuery)

Lists the messages.

Namespace:  Aspose.Email.Clients.Pop3
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task<Pop3MessageInfoCollection> ListMessagesAsync(
	Pop3ListFields fields,
	bool closeTransaction,
	MailQuery query
)

Parameters

fields
Type: Aspose.Email.Clients.Pop3Pop3ListFields
The fields that we want get
closeTransaction
Type: SystemBoolean
Indicates if current transaction has to be closed, before the list is retrieved.
query
Type: Aspose.Email.Tools.SearchMailQuery
The MailQuery object.

Return Value

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