o365utils
o365utils copied to clipboard
Confirmation Searches never complete if emails are still found
How confirmation searches currently work:
- for each user who had matches a new search string is crafted which will exclude various deleted items folders
- all of those searches are performed over and over again in a loop until the search returns 0 results
The problem with this is that if the email is not deleted, the confirmation search will never complete. For example, if the email fails to delete, or if the user receives another matching email while the confirmation search is running, the search will never confirm or error out.
There should be a timeout, or a maximum number of searches. After this timeout there user should be notified that the deletion could not be confirmed and that they should manually verify or try the deletion again.