c# - Change Inbox-icons in Outlook at runtime -


i have problem in outlook addin. addin processes incoming mails , validates different headers etc. want check if specific headers set , change icon of mail in inbox folder. possible?

you can either

  1. change icon couple dozen or predefined icons used outlook (e.g. when shows message replied to/forwarded) modifying pr_icon_index mapi property (dasl name http://schemas.microsoft.com/mapi/proptag/0x10800003) using mailitem.propertyaccessor.setproperty. can play property , different values in outlookspy - select message replied/forwarded icon, click imessage button, double click on pr_icon_index mapi property modify it.

  2. install own custom form. can specify message class form handles , custom icon. if change message class of message, outlook show custom icon.


Comments