如何区分“注”和“注”和“邮件” Lotus Notes 中的项目?使用Domino.dll

发布于 09-01 23:42 字数 139 浏览 12 评论 0原文

我有一个 Nsf 文件,其中一个文件夹中有一些邮件和注释项目。

我用“form”属性来区分每个项目。 在邮件的情况下,表单类型是“备忘录”,但在上述情况下,注释“表单”类型又是“备忘录”

我如何区分这两个项目?

谢谢

I have a Nsf file in which in one of folder there are some mail and notes items.

I am differentiating each item with "form" property.
In case of mails form type is "memo" but in above scenario Notes "form" type is again "memo"

How can i differentiate these two items?

thanx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

瑾兮2024-09-08 23:42:07

使用“表单”项并不是区分电子邮件和其他“文档”的安全方法。事实上,Notes 数据存储并不能真正区分文档的来源 - 无论是来自已发送的电子邮件还是来自创建的文档。但是,您可以使用 RouteTimes 和 RouteServers 字段来很好地猜测给定文档是否是从电子邮件启动的。 (任一字段的存在通常意味着文档是由邮件路由器传递的)。

Using the "form" item is not a safe way to distinguish emails from other "documents". In fact, a Notes data store does not really distinguish where a document came from - whether from a delivered email or a created document. However, you can use the fields RouteTimes and RouteServers to take a pretty good guess as to whether a given document was initiated from an email message. (The existence of either field will generally mean the document was delivered by the mail router).

知你几分2024-09-08 23:42:07

如果你想比较字段,我认为最好的方法是比较 $ 字段,因为它们通常保留供内部使用,如果没有充分的理由,不应更新。因此,它们是表单中最准确的字段。

检查$MessageID$MIMETrack$UpdatedBy。最后一个应该小心使用,但如果它是邮件,它应该包含邮件服务器。

If you want to compare the fields, I think the best way is to compare $ fields because they are usually reserved for internal use and should not be updated without a good reason. Therefore they are the most accurate fields of a form.

Check $MessageID, $MIMETrack or $UpdatedBy. This last one should be used with care but it should contains the mail server(s) if it is a mail.

最佳男配角2024-09-08 23:42:07

在 LN 中,您可以在注释中模拟邮件模板。因此,除非您知道注释是如何创建的并使用该信息根据特定条件构建测试,否则没有确定的方法可以区分注释和邮件。如果你可以控制笔记的创建,我建议使用特定的形式来区分每种记录类型。

当然,您可以检查笔记的属性(字段和值)并“启发式”(即经验法则)构建测试

In LN you can mock a the mail template in a note. So there is no sure way to distinguish a note from a mail UNLESS you know how the notes were created and use that info to build a test based on specific conditions. If you can control the note creation, I suggest to use a specific form to be able to distinguish each record type.

Of course you can check the properties (fields and values) of your notes and build a test "heuristically" (meaning rule-of-thumb)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文