TTMSFNCCloudMicrosoftOutlookMail and GetMails

Hi,
how do I download all emails from office365 correctly? If I call GetMails, I only get mails up to APageSize. 1. How do I download other emails that did not fit?
2. How do I download only those emails that I have not downloaded before?
Your description
https://download.tmssoftware.com/doc/tmsfnccloudpack/components/ttmsfnccloudmicrosoftoutlookmail/

it does not specify how to continue downloading next mail.

In Microsoft's description, it is not recommended to use the $skip parameter, but to use the URL returned in @odata.nextLink for other mails
https://learn.microsoft.com/en-us/graph/api/user-list-messages?view=graph-rest-1.0&tabs=http

Please give me a small example of how to download only emails that I haven't downloaded yet.

Hi,

You can use the PageIndex parameter of the GetMails call to get more emails.
With PageIndex set to 0 the request will return the first 10 emails. With PageIndex set to 1, the request will return the second 10 emails. And so on.

Example:
TMSFNCCloudOutlookMail1.GetMails('INBOX', 10, 2);

Unfortunately there is currently no way to track which emails have already been downloaded before.