Get EwsItemId using MessageId

0 votes
asked Mar 2, 2018 by abarref (280 points)

I have a MessageId stored in the database associated to a MailMessage:

5f9410ed-db91-cccc-d2d9-5137a51c6706@gmail.com

I need to find the EwsItemId associated to it so I can do ews operations with it.

Is it possible to retrieve the EwsItemId having only its MessageId?

Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Mar 5, 2018 by stepantalalayev (3,940 points)
edited Apr 6, 2018 by Lukas Pokorny
 
Best answer

This feature was unfortunately not available. But, as this kind of search is essential, we decided to add it. Here is the link to the hotfix containing that improvement. It is available since Rebex Secure Mail 2018 R1.

The code below shows how to perform search by MessageId:

ewsClient.Search(EwsFolderId.Inbox, EwsSearchParameter.MessageId(mailMessage.MessageId.Id));
commented Mar 14, 2018 by abarref (280 points)
Is this going to be available in some future release? We have paid for a license and we are planning on using this new feature on a production environment. Thanks
commented Mar 15, 2018 by Lukas Pokorny (101,070 points)
Yes, this will be available in the next release. We post a notice here when it's available.
...