Reputation: 436
I'm trying the search for emails based on SMTP address. I've found that I need to use http://schemas.microsoft.com/mapi/proptag/0x39FE001E
but if I try to create a view using the following DASL filter, nothing is displayed:
"http://schemas.microsoft.com/mapi/proptag/0x39FE001E" = '[email protected]'
What am I doing wrong?
Upvotes: 2
Views: 708
Reputation: 66286
No messages have PR_SMTP_ADDRESS
property set directly on them. It is only set on the address book objects or in the message recipient table.
Are you trying to filter based on the sender SMTP address? PidTagSenderSmtpAddress
may or may not be present (DASL name http://schemas.microsoft.com/mapi/proptag/0x5D01001F
)c - try to use it instead.
Check if you can see that property in OutlookSpy (I am its author - click IMessage button).
Upvotes: 0
Reputation: 53111
I believe you have to do it like this:
"http://schemas.microsoft.com/mapi/proptag/0x39FE001E" CI_STARTSWITH '[email protected]'
Upvotes: 0