Is there a way to get messages with the getItemsRequest without setting of
the opened flag.

I was able to do this through IMAP by using the EXAMINE keyword instead of
using SELECT.