I am working on application, which need to be refactored from using Java Mail API (with IMAP) to Exchange Web Services (EWS). I decided to use ews-java-api. To recreate existing business logic, I need to use some kind of equivalent for IMAP flags, precisely: Answered, Recent and Seen.
So far I found discussions, which outcome was to use MAPI properties - at least for answered flag, but there were suggestions to use PR_LAST_VERB_EXECUTED property, which seems not to be enough information for me. Do anyone knows is this possible to get such information from this API library/MAPI at all?
I pulled a list of IMAP flags from this question.
Mostly, it's a matter of working out which MAPI properties store the information you're looking for. A great place to figure this out is by looking at messages in MFCMAPI, paying special attention to PT_LONG properties which have flag values.
I mapped a few for you:
Recent is weird. If you're interested in knowing about messages that have arrived recently, you might want to look at EWS Sync.