When getting emails from a folder in Graph only the first 1000 emails are returned.
This results in 2 problems:
- Getting 1000 emails is really slow
- If there are more than 1000 emails it's impossible to access them.
Instead of returning all emails at once a generator should be used to get the emails in chuncks as they are needed
When getting emails from a folder in Graph only the first 1000 emails are returned.
This results in 2 problems:
Instead of returning all emails at once a generator should be used to get the emails in chuncks as they are needed