Restrict on Blocked properties in Outlook?

I am trying to restrict contactitems based on an EmailAddress. I know
EmailAddress1, etc are blocked and I have to show the security warning or use redemption, etc.
Should my restrict be failing at all because of the block or does anyone have an idea why a simple restrict returns nothing

Example VSTO code:
string filter = "[Email1Address] = 'me@MyCompany.com'";
Outlook.Items items =
this.Session.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderContacts).Items.Restrict(filter);


Answer this question

Restrict on Blocked properties in Outlook?

  • dshirah

    oh... i have found the button to send the address to block list.

  • Peggi Goodwin

    Hi

    May i know how can i block a particular address from sending mail to my mailbox in microsoft outlook



  • Tri

    I found my own mistake. You need to be careful about the format of the email address. Sometimes the contact item displays the SMTP address (Me@MyCompany.com) but the actual value stored in the item is the Exchange format (/CN:Me)
  • Restrict on Blocked properties in Outlook?