简体   繁体   English

Outlook 2010 - 如何使用 VBA 删除电子邮件中的“您转发此邮件”行

[英]Outlook 2010 - how to remove “You forwarded this message on” line in email with VBA

Does anyone know if there is a property associated with the grey message that appears under the Sender's name in a forwarded email?有谁知道是否有与转发电子邮件中发件人姓名下显示的灰色消息相关联的属性? On Exchange it is "You forwarded this message on mm/dd/yyyy hh:mm AM" next to a small blue icon with an "i" in it.在 Exchange 上,“您在 mm/dd/yyyy hh:mm AM 上转发了此消息”,旁边是一个带有“i”的蓝色小图标。

I have not been able to identify the property in the Object Reference.我无法识别对象引用中的属性。

i would like to turn this off after forwarding an email in a VBA routine.我想在 VBA 例程中转发电子邮件后关闭此功能。

Thank you.谢谢你。

The Outlook object model doesn't provide any properties for that. Outlook 对象模型不为此提供任何属性。

But you can try to read the MAPI property PR_LAST_VERB_EXECUTED (0x10810003) to detect the last action made with the Outlook item.但是您可以尝试读取 MAPI 属性 PR_LAST_VERB_EXECUTED (0x10810003) 来检测对 Outlook 项目所做的最后一个操作。 I suppose the information text is based on that property value.我想信息文本基于该属性值。

PR_LAST_VERB_EXECUTED (DASL name "http://schemas.microsoft.com/mapi/proptag/0x10810003" ) determines the action kind (forward/reply/reply all) and PR_LAST_VERB_EXECUTION_TIME (DASL name "http://schemas.microsoft.com/mapi/proptag/0x10820040") determines the time. PR_LAST_VERB_EXECUTED(DASL 名称"http://schemas.microsoft.com/mapi/proptag/0x10810003" )决定了动作种类(forward/reply/reply all)和 PR_LAST_VERB_EXECUTION_TIME(DASL 名称"http://schemas.microsoft.com/mapi/proptag/0x10820040")确定时间。 You can delete these properties using MailItem.PropertyAccessor.DeleteProperty.您可以使用 MailItem.PropertyAccessor.DeleteProperty 删除这些属性。

Take a look at the properties in OutlookSpy (click IMessage button).查看OutlookSpy中的属性(单击 IMessage 按钮)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM