We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Search mail item in outlook

Hi! It’s possible to search an item in outlook via entryid? I mean something like this:

search(string entryID) return MailMessage item

Best Regards!

Hi Luis,

Thank you for using Aspose.Email.

The overloaded signature of ExtractMessage method of PersonalStorage object can be used to get a MapiMessage using string entry ID.

Sample Code:

// load the Outlook PST file<o:p></o:p>

PersonalStorage pst = PersonalStorage.FromFile(@"Outlook.pst");

//Get the Message using the String Entry ID

MapiMessage msg = pst.ExtractMessage("AAAAABtYvU3z03hPqxXXqIf29ThEASAA");

where "AAAAABtYvU3z03hPqxXXqIf29ThEASAA" is the String Entry ID. Please let us know if you have any additional query/inquiry. We will be glad to assist you further as soon as possible.