Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: Outlook 2013 | Outlook 2016
To locate all the outgoing messages that you have saved or sent
Call IMsgStore::CompareEntryIDs to compare the folder that contains your sent messages with the folder that contains your incoming messages.
Set the lpEntryID1 parameter to point to PR_IPM_SENTMAIL_ENTRYID (PidTagIpmSentMailEntryId) and the lpEntryID2 parameter to point to PR_PARENT_ENTRYID (PidTagParentEntryId).
Be aware that if you either delete messages after they are sent or have moved any of the sent messages to another folder, this strategy will not work.
If in examining an incoming message you notice that the properties that are typically set by a transport provider are missing, you can assume that the message was never handled by a transport provider. These properties include:
PR_RECEIVED_BY properties
PR_MESSAGE_DOWNLOAD_TIME (PidTagMessageDownloadTime)
PR_TRANSPORT_MESSAGE_HEADERS (PidTagTransportMessageHeaders)
PR_MESSAGE_TO_ME (PidTagMessageToMe)
PR_MESSAGE_CC_ME (PidTagMessageCcMe)
PR_MESSAGE_RECIP_ME (PidTagMessageRecipientMe)