DASL Filter in Outlook to select Mails by their EntryID

2.1k views Asked by At

I'm trying to apply a DASL Filter [customized View] on a search Folder with this SQL query:

"http://schemas.microsoft.com/mapi/proptag/0x0FFF0102" = '000000001CF4984B1BD06249A3C1E9DBBE2C6F65E4C82200'

I'd like to select only mails by their entryIDs which I found in a previous search. The searchfolder contains definitely the mail with that entryID.

Applying sth like this on same folder

"http://schemas.microsoft.com/mapi/proptag/0x10810003" = '102'

works.

Is it not possible to do this? Or is my SQL query not correct?

1

There are 1 answers

4
Dmitry Streblechenko On BEST ANSWER

If you know the EntryID, simply call Namespace.GetItemfromID. There is no reason to search.

UPDATE: On a more general note, OOM would not let you search on a binary (PT_BINARY) property. If using Redemption is an option (I am its author), its versions of RDOItems.Find/Restrict will let you specify a binary property using the syntax above. To retrieve an RDOFolder object, create an instance of the RDOSession object and call RDOSession.GetRDOObjectFromOutlookObject passing an instance of the MAPIFolder object from OOM - you will get back an RDOFolder object.