A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Regular expression search in Outlook with Extended MAPI



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 3rd 06, 08:28 AM posted to microsoft.public.outlook.program_vba
Rodeng
external usenet poster
 
Posts: 1
Default Regular expression search in Outlook with Extended MAPI

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?

  #2  
Old November 3rd 06, 05:28 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Regular expression search in Outlook with Extended MAPI

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

"Rodeng" wrote in message
...
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?



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is ElseIf the right expression here? fionamac Outlook and VBA 14 March 27th 06 12:08 AM
how can you get the extended day header to invert black bar? Frank Outlook - Calandaring 1 March 1st 06 10:25 AM
expression which is not collaction type error in vb.net Sanjay Outlook and VBA 3 February 24th 06 02:48 PM
Is Extended MAPI "hard"? Rob Nicholson Outlook and VBA 6 January 25th 06 02:01 PM
Mapi32.dll is an invalid extended MAPI library Mike Dormante Outlook - General Queries 1 January 20th 06 03:26 PM


All times are GMT +1. The time now is 05:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.