I am enumerating senders/recipients of emails in a PST but want to avoid using .ExtractMessage for performance reasons. I can use .ExtractProperty to obtain PR_SENDER_EMAIL_ADDRESS_W but when I extract PR_MESSAGE_RECIPIENTS it always returns null despite there being recipients.
Can anyone provide guidance on how to extract the recipients from an email without the overhead of .ExtractMessage?
Code looks somewhat like this…
foreach (MessageInfo msgInfo in folder.EnumerateMessages())
{
// Extract Date/Time
MapiProperty propSubmitTime = pst.ExtractProperty(msgInfo.EntryId, MapiPropertyTag.PR_CLIENT_SUBMIT_TIME);
DateTime dt = propSubmitime.GetDateTime();
// Extract Sender
MapiProperty propSenderAddress = pst.ExtractProperty(msgInfo.EntryId, MapiPropertyTag.PR_SENDER_EMAIL_ADDRESS_W);
// Extract Recipients
MapiProperty propRecipients = pst.ExtractProperty(msgInfo.EntryId, MapiPropertyTag.PR_MESSAGE_RECIPIENTS);
}