OUT-68: Set pEp message class in Outlook 2010 secure stores if mail item was downloaded header only.
authorThomas
Wed, 28 Jun 2017 11:50:39 +0200
changeset 1724d8e92b7d5e69
parent 1723 0f6a4c6c81d4
child 1725 b481ccbddc1f
child 1729 0d52cbaa6040
OUT-68: Set pEp message class in Outlook 2010 secure stores if mail item was downloaded header only.
CryptableMailItem.cs
     1.1 --- a/CryptableMailItem.cs	Wed Jun 28 11:49:19 2017 +0200
     1.2 +++ b/CryptableMailItem.cs	Wed Jun 28 11:50:39 2017 +0200
     1.3 @@ -1240,8 +1240,9 @@
     1.4                       * which then leads to the form region not being properly dispayed at the first click (OUT-68).
     1.5                       */
     1.6                      if ((isPEPInternal == false) &&
     1.7 -                        (isSecurelyStored) &&
     1.8 -                        (this.internalMailItem.MessageClass != MapiPropertyValue.PidTagMessageClassSecurePEP))
     1.9 +                         (isSecurelyStored ||
    1.10 +                         (Globals.GetOutlookVersion() == Globals.Version.Outlook2010 && this.internalMailItem.GetIsInSecureStore() && this.internalMailItem.DownloadState == Outlook.OlDownloadState.olHeaderOnly)))
    1.11 +
    1.12                      {
    1.13                          try
    1.14                          {