Regular expression search in Outlook with Extended MAPI

R

Rodeng

Hello,

I'd like to search for e-mail in the Outlook folder with Extended MAPI and
the Redemption library (in C++ or C#).

I tried restricting with kind RES_PROPERTY and RELOP_RE for regular
expressions search, but this never matches anything; whereas with RELOP_EQ I
can find the text I am looking for.

If I set lpProp to some normal text without special characters, it is found
in RELOP_EQ mode, but not in RELOP_RE mode. Or setting lpProp to ".*" which
should match everything does not find anything either.

Is there a catch in regexp search, or is the syntax different from the one
described in http://msdn2.microsoft.com/en-us/library/1400241x.aspx or is
regexp search simply broken?
 
D

Dmitry Streblechenko

MAPI restrictions do *not* support regular expressions.
Do you want to support any regular expressions (probably won't work because
of the store provider limitations) or a particular regular expression?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top