【发布时间】:2017-06-15 01:33:16
【问题描述】:
我正在对 Outlook VBA 中的邮件进行自动化处理。我想使用 PR_VERB_EXECUTION_TIME 属性来获取邮件的最新状态,并检查邮件是否已经被回复或转发,如果邮件无人看管,则发送邮件。任何帮助
Sub Test(Item AS MailItem)
//Item is my incoming mail
Dim Obj As Outlook.MailItem
Dim str As String
Dim propaccessor As Outlook.Propertyaccessor
Set propaccessor = Item.propertyAccessor
str = propaccessor.Getproperty("http://schemas.microsoft.com/mapi/proptag/0x10820040")
'Str value is setting to null due to which error is thrown
'but other properties are working fine
'i want to use this string and compare current time and then reply if it is equal to current time
End Sub
感谢您如何使用该属性!
【问题讨论】:
-
到目前为止您尝试过什么?查看help center 和How to Ask 以获取有关提高问题质量的提示。考虑添加一个minimal reproducible example,它说明了您迄今为止所做的尝试以及对您的具体问题/错误的解释。
-
PR_LAST_VERB_EXECUTED 将始终为 0,PR_VERB_EXECUTION_TIME 在传入邮件中始终为空。这些属性适用于您已回复的邮件。
-
感谢您提供的信息。但是我怎样才能检查收到的邮件是否有人回复它。当我打开 Outlook 时收到来自服务器的延迟邮件时会出现这种情况,因此我必须避免回复已回复的邮件