Jan-07-2022, 07:38 PM
Not sure if this would help, but if you are expecting to only search for a certain number of emails, why not get the "count" of emails found to download and loop thru that number of emails, so that once its processed all x emails, it stops looping?
What is being returned in this variable?
mail_items
You have to be able to tell the logic that it needs to stop, you could technically create a Boolean variable outside the while, set it to false
Then after line 60 mail_items.GetPrevious() set that to true.
Then wrap your while with if false, run logic..
Just an idea.
What is being returned in this variable?
mail_items
You have to be able to tell the logic that it needs to stop, you could technically create a Boolean variable outside the while, set it to false
Then after line 60 mail_items.GetPrevious() set that to true.
Then wrap your while with if false, run logic..
Just an idea.