developing outlook add-in, to check if the sent mail item has been replied to

泪湿孤枕 提交于 2019-12-25 06:25:29

问题


So,

I want to check if the mail I sent to someone, has a reply. In other words, if that person has replied to my mail.

sentboxFolder = 

ns.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderSentbox);

//So here if i access individual mail and check

Outlook.MailItem mailItem = ( Outlook.MailItem ) sentboxFolder.Items[1];

Now, if i took the PR_LAST_VERB_EXECUTED property of this mail item, what would it return if the mail has a reply sitting somewhere in my inbox and what would it return if noone replied to my mail ?

Also,

I'm not sure if I'd be able to implement this properly, can someone refer me to some examples where PR_LAST_VERB_EXECUTED is used?

Thanks in advance


回答1:


PR_LAST_VERB_EXECUTED is only set on the messages in your local mailbox. If a recipient replied to the message, PR_LAST_VERB_EXECUTED will be set on a message in his/her mailbox, which you most likely cannot access.

You can try to read PR_CONVERSATION_INDEX property from the message in the sent items folder, then search for a message in the Inbox folder that has PR_CONVERSATION_INDEX starting with the same value.

See the following article on MSDN: http://msdn.microsoft.com/en-us/library/office/cc765583.aspx



来源:https://stackoverflow.com/questions/17922081/developing-outlook-add-in-to-check-if-the-sent-mail-item-has-been-replied-to

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