tracking when a email will be flagged as "Phishing" RRS feed

  • Question

  • Hi

    I am currently trying to find out if it is possible to track when the outlook client is flagging an new received email as "possible phishing". The PidNamePhisingStamp property of the email has to be set and the exchange server must be updated afterwards.

    Has one of you done something similar ? With Outlook Spy or MFCMAPI  I can read the flags but it this action possible in "real time".

    Thanks for help




    Thursday, September 17, 2015 8:49 AM


  • Hello Joe,

    You can use the PropertyAccessor object to get the property value. The GetProperty method of the PropertyAccessor class returns an Object that represents the value of the property specified by SchemaName. The property is referenced by namespace. For more information, see Referencing Properties by Namespace. See Best Practices for Getting and Setting Properties for more information. For example:

    Sub DemoPropertyAccessorGetProperty() 
     Dim PropName, Header As String 
     Dim oMail As Object 
     Dim oPA As Outlook.PropertyAccessor 
     'Get first item in the inbox 
     Set oMail = _ 
     PropName = "" 
     'Obtain an instance of PropertyAccessor class 
     Set oPA = oMail.PropertyAccessor 
     'Call GetProperty 
     Header = oPA.GetProperty(PropName) 
     Debug.Print (Header) 
    End Sub

    Also you may find the CustomPropertyChange event of the MailItem class which is fired when a custom property of an item is changed. The property name is passed to the procedure so that you can determine which custom property changed.

    Thursday, September 17, 2015 9:32 AM