Just a little addition here. If there’s a better API to get the X newest items that would be great too.
Right now as we deal with large mail boxes… our processing is very slow… as it used to run on all mail items. I’m trying to speed it up so it will only run on the X latest items. it’s not overly important if it misses some in these large mailboxes (80K+ documents in inbox).