Regarding your enhancement request, a ticket has already been logged for the Product team to analyze this requirement and provide an overloaded function with support of both attachment information as well as Paging.
With respect to the issues of different messages count returned with an older and latest version, the issue will be reported to the Product team for resolution if it is reproduced at our end. It will then be considered for a fix in the upcoming versions of the API.
In order to reproduce at our end, I tried the scenario by running following sample code using different versions of the API i.e. Aspose.Email for .NET 5.7.0 (Before paging feature) and latest release Aspose.Email 6.1.0. It was expected that I may get more messages with old library and less number would be retrieved using latest library. However, I got different results as old library returns total number of mails in the account but latest release rises exception “Connection is closed”. Could you please confirm whether you get such exception or not while working with new library?
I need your assistance to re-produce this scenario here. Please provide us steps to observe this difference in behavior here as I could not succeed using following code.
IEWSClient client = GetAsposeEWSClient();
client.Timeout = 100000*200;
ExchangeMessageInfoCollection coll = client.ListMessages("Inbox",ExchangeListMessagesOptions.FetchAttachmentInformation);