简体   繁体   English

开发outlook加载项,以检查已发送的邮件项是否已被回复

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

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 ? 现在,如果我使用了此邮件项目的PR_LAST_VERB_EXECUTED属性,如果邮件在我的收件箱中某处有回复,如果没有人回复我的邮件,它会返回什么?

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? 我不确定我是否能够正确实现这一点,有人可以参考我使用PR_LAST_VERB_EXECUTED的一些例子吗?

Thanks in advance 提前致谢

PR_LAST_VERB_EXECUTED is only set on the messages in your local mailbox. PR_LAST_VERB_EXECUTED仅在本地邮箱中的邮件上设置。 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. 如果收件人回复了该邮件,则PR_LAST_VERB_EXECUTED将设置在他/她邮箱中的邮件中,您很可能无法访问该邮件。

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. 您可以尝试从已发送邮件文件夹中的邮件中读取PR_CONVERSATION_INDEX属性,然后在收件箱文件夹中搜索具有相同值的PR_CONVERSATION_INDEX的邮件。

See the following article on MSDN: http://msdn.microsoft.com/en-us/library/office/cc765583.aspx 请参阅MSDN上的以下文章: http//msdn.microsoft.com/en-us/library/office/cc765583.aspx

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

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