Keep Outlook mailItem property (internet header) from being removed when forwarded/replied

最后都变了- 提交于 2019-12-12 09:25:32

问题


I'm trying to start up a thread of mails defined by the same ID (ID needs to be a specific value equal to the one in our database). I can assign a custom internet header just fine like this:

sendMail.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/DCPID", taskId);

Where the sendMail is an olMailItem and taskId is the id needed.

When this mail is sent and recieved I can get my ID with the GetProperty method but when forwarded or replied the internet header gets removed and I can't access this property anymore.

Is there a way to keep your custom internet header from being removed, no matter where it goes?


回答1:


No, there is no way to preserve a custom message header on reply or forward.



来源:https://stackoverflow.com/questions/15197356/keep-outlook-mailitem-property-internet-header-from-being-removed-when-forward

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!