在运行时更改Outlook中的收件箱图标 [英] Change Inbox-icons in Outlook at runtime
问题描述
我的Outlook插件有问题.我的加载项处理传入的邮件并验证不同的标头等.我想检查是否设置了特定的标头,然后在我的收件箱文件夹中更改此邮件的图标.这可能吗?
I have a problem in my Outlook Addin. My AddIn processes the incoming mails and validates different headers etc. I want to check if a specific headers is set and then change the Icon of this mail in my inbox folder. Is this possible?
推荐答案
您可以
-
通过使用MailItem修改PR_ICON_INDEX MAPI属性(DASL名称
http://schemas.microsoft.com/mapi/proptag/0x10800003
),将图标更改为Outlook本身使用的几十个左右预定义的图标(例如,当它显示邮件已回复/转发时) .PropertyAccessor.SetProperty.您可以在 OutlookSpy 中使用该属性及其不同的值-选择带有回复/转发图标的邮件,单击IMessage按钮,双击PR_ICON_INDEX MAPI属性进行修改.
change the icon to a couple dozen or so predefined icons used by Outlook itself (e.g. when it shows that a message was replied to/forwarded) by modifying the PR_ICON_INDEX MAPI property (DASL name
http://schemas.microsoft.com/mapi/proptag/0x10800003
) using MailItem.PropertyAccessor.SetProperty. You can play with that property and its different values in OutlookSpy - select a message with a replied/forwarded icon, click IMessage button, double click on the PR_ICON_INDEX MAPI property to modify it.
安装您自己的自定义表单.您可以指定表单处理的消息类和自定义图标.如果您更改邮件的邮件类别,Outlook将显示您的自定义图标.
Install your own custom form. You can specify the message class that the form handles and your custom icon. If you change the message class of a message, Outlook will show your custom icon.
这篇关于在运行时更改Outlook中的收件箱图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!