开发Outlook外接程序,以检查发送的邮件是否已回复 [英] developing outlook add-in, to check if the sent mail item has been replied to

查看:212
本文介绍了开发Outlook外接程序,以检查发送的邮件是否已回复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以

我想检查我发送给某人的邮件是否有回复.换句话说,如果那个人已经回复了我的邮件.

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];

现在,如果我采用了此邮件项目的PR_LAST_VERB_EXECUTED属性,如果邮件在收件箱中的某处有答复,它将返回什么?如果没有人答复我的邮件,它将返回什么?

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的示例吗?

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仅在本地邮箱中的邮件上设置.如果收件人回复了该邮件,则PR/LAST_VERB_EXECUTED将会在他/她的邮箱中的邮件上设置,您很可能无法访问.

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.

您可以尝试从已发送邮件文件夹中的邮件中读取PR_CONVERSATION_INDEX属性,然后在收件箱文件夹中搜索具有以相同值开头的PR_CONVERSATION_INDEX的邮件.

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.

请参见MSDN上的以下文章: http://msdn.microsoft .com/en-us/library/office/cc765583.aspx

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

这篇关于开发Outlook外接程序,以检查发送的邮件是否已回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆