Get EwsItemId using MessageId

0 votes
asked Mar 2 by abarref (250 points)

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

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 by stepantalalayev (3,940 points)
selected Mar 6 by abarref
Best answer


this feature unfortunately was 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:

The code below shows how to perform search by MessageId:

ewsClient.Search(EwsFolderId.Inbox, EwsSearchParameter.MessageId(mailMessage.MessageId.Id));
commented Mar 14 by abarref (250 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 6 days ago by Lukas Pokorny (90,170 points)
Yes, this will be available in the next release. We post a notice here when it's available.