How do I list all emails in an OWA folder and obtain their ConversationId?
After authentication, send a POST request to `/owa/service.svc?action=FindItem` with a JSON body that specifies the folder name (e.g., `inbox` or `sentitems`) and sets `MaxEntriesReturned` to a high value like 999999. The response JSON contains an array of email items, each including a `ConversationId` – a unique identifier needed to later fetch the full content of that email. This method is similar in concept to reading emails via the IMAP protocol, but tailored to OWA’s proprietary API as explained in Penetration Basics - Reading Emails Using the IMAP Protocol.
FindItemConversationIdemail listingOWA folderJSONIMAP