![]() |
Sender and recipient criteria in AdvancedSearch not working
For the sender's address, use http://schemas.microsoft.com/mapi/proptag/0x0065001f (easily found by using the Filter dialog for an Outlook view and checking the SQL tab.
I've never found any analogous property for the recipient address, probably because there can be multiple recipients. Looking at a search folder with MFCMAPI or Outlook Spy is instructive in this area; the search rules that it uses for a "Send To = " type search are quite complex. urn:schemas:httpmail:displayto and urn:schemas:httpmail:displaycc will get you the display names, though. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx wrote in message oups.com... I have tested this in VBA and in VB.NET and can not get it to work. I am using AdvancedSearch and would like to specify a criteria based on the sender's email address and the recipient's email address (not necessarily at the same time, and not their display names but their actual email addresses) . I have tried the fields: urn:schemas:httpmail:to urn:schemas:httpmail:sender urn:schemas:httpmail:fromemail urn:schemas:httpmail:toemail urn:schemas:mailheader:to urn:schemas:mailheader:sender urn:schemas:mailheader:fromemail urn:schemas:mailheader:toemail urn:schemas:mailheader:mailheader-from I get no search results using any of these fields. Some of these are from MSDN's documentation, others were suggested by people in Usenet. I have found another post from over a year ago with the similar problem, but saw no resolution. Can this be done? Thank you for any help. - Matt |
All times are GMT +1. The time now is 06:14 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com