Client.ListMessages returns only 1000 messages but the folder contains more items

Client.ListMessages returns only 1000 messages but the folder contains more items. please share C# code to fetch all the messages as soon as possible.

Thanks

@ravikumarchopra,

Thank you for contacting Aspose support team again.

Could you please mention which client are you using i.e. EWSClient or ImapClient as both contain ListMessages()?