简体   繁体   English

VBA - Lotus Notes - Output Email 历史

[英]VBA - Lotus Notes - Output Email History

I hope someone can put me on the right path, I have code that simply outputs emails received today into an excel spreadsheet by connecting to the database and then popping out the NotesDocument.Document items.我希望有人能让我走上正确的道路,我的代码通过连接到数据库然后弹出NotesDocument.Document项目,将今天收到的电子邮件简单地输出到 excel 电子表格中。 Now what I cannot see within those items is reference to History as I'd like to be able to tell whether these output email have been replied to.现在我在这些项目中看不到的是对历史的引用,因为我想知道这些 output email 是否已得到答复。

这部分位于 Notes 中的什么位置,我将如何访问它的引用?

If anyone knows what I could look into or read to help me retrieve this information it would be greatly appreciated.如果有人知道我可以查看或阅读什么来帮助我检索这些信息,将不胜感激。

If you look at the (FollowUpMemoSubform) in the mail template, you will see that it contains this section.如果您查看邮件模板中的 (FollowUpMemoSubform),您会看到它包含此部分。

在此处输入图像描述

The appearance of these lines is controlled by hide-when formulas that check for a NotesItem called $RespondedTo.这些行的外观由检查名为 $RespondedTo 的 NotesItem 的隐藏时公式控制。 The logic for the first line ("This message has been replied to") is第一行的逻辑(“此消息已回复”)是

@IsNewDoc | !@IsAvailable(DeliveredDate) | !@IsAvailable(PostedDate) |
!@IsAvailable($RespondedTo) | !$RespondedTo="1"

The hide-when formulas for the other two lines are similar, but they are checking for "2" or "3".其他两行的 hide-when 公式相似,但它们检查的是“2”还是“3”。

The basic logic is: It's been replied to if $RespondedTo is 1 or 3. It's been forwarded if $RespondedTo is 2 or 3. The checks of DeliveredDate and PostedDate are there (I think) to exclude drafts.基本逻辑是:如果 $RespondedTo 为 1 或 3,则已回复。如果 $RespondedTo 为 2 或 3,则已转发。 DeliveredDate 和 PostedDate 的检查(我认为)用于排除草稿。 The check of @IsNewDoc is there for when you are composing a brand new message that has not yet been saved, but that's not an issue for you since those messages aren't in the NSF file so you'll never read them.当您编写尚未保存的全新消息时,可以检查@IsNewDoc,但这对您来说不是问题,因为这些消息不在 NSF 文件中,因此您永远不会阅读它们。

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

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