PEPIdentity.cs
branchOUT-401
changeset 2007 31da7a34305e
parent 2006 f2b0f06a8a5b
child 2009 0ca0c0824911
equal deleted inserted replaced
2006:f2b0f06a8a5b 2007:31da7a34305e
  1647                 ns = null;
  1647                 ns = null;
  1648                 folder = null;
  1648                 folder = null;
  1649                 items = null;
  1649                 items = null;
  1650             }
  1650             }
  1651 
  1651 
  1652             // If contact doesn't exist, create it
  1652             // If contact doesn't exist, create it.
  1653             if (contactExists == false)
  1653             // Make also sure that it's not an own identity.
       
  1654             if ((contactExists == false) &&
       
  1655                 (PEPIdentity.GetIsOwnIdentity(address) == false))
  1654             {
  1656             {
  1655                 try
  1657                 try
  1656                 {
  1658                 {
  1657                     contact = Globals.ThisAddIn.Application.CreateItem(Outlook.OlItemType.olContactItem);
  1659                     contact = Globals.ThisAddIn.Application.CreateItem(Outlook.OlItemType.olContactItem);
  1658                     contact.Email1Address = address;
  1660                     contact.Email1Address = address;