Is there a way to do a message search that limits the returned items to 500 items but searches for a flag being set? Basically I want to pull messages that don't have the delete flag set but not all of them at once? I plan on later going back and purging the messages. Purge takes a ton of resources and is slowing down the process significantly so I figure if I can do it afterwards.
Thanks
Nick