gpt4 book ai didi

lotus-notes - 如何对单个邮件文件禁用 iNotes

转载 作者:行者123 更新时间:2023-12-05 01:26:56 25 4
gpt4 key购买 nike

应该很简单,但 IBM 并没有让它变得容易......

通过 HTTP 访问邮件文件时如何不使用 iNotes。

我想访问我的邮件文件的自定义 View 和表单,但我似乎无法绕过 iNotes。服务器总是给我一个 iNotes 页面而不是我的表单。

如果我使用旧的邮件文件模板,它会起作用,但在较新的邮件模板中的某处有一个“开关”,表示使用 iNotes。

显然我仍然想要 HTTP,只是在这个邮件文件上不需要 iNotes —— 我不想使用旧的电子邮件模板。 “开关”在哪里?

提前致谢。

最佳答案

您可以通过添加 URL 参数来强制使用“经典”ui:

hxxp://yourserver.yourdomain.com/mail/mailfile.nsf?OpenDatabase&ui=webmail

打开 View 的效果相同:

hxxp://yourserver.yourdomain.com/mail/mailfile.nsf/YourView?OpenView&ui=webmail

如果您想在不进行 URL 攻击的情况下完全禁用邮件文件的 iNotes,则可以删除相应 FormsX.nsf- 文件的“链接”。该链接存储在数据库图标中。该图标文档包含一个名为 $FormsTemplateFile 的项目。当 R9 中仍然指向 Forms85.nsf 的德语模板出现问题时,这个“上下文”就被揭露了。检查this link at IBM了解详情。该链接中的代码也可用于通过删除“链接”项来解决您的问题:

Dim sess As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim item As NotesItem
Dim newFF As String
Dim itemFF As NotesItem

Set db = sess.CurrentDatabase
Dim session As New NotesSession

Dim n As String
Set db = session.CurrentDatabase
n = "FFFF0010"
Set doc = db.GetDocumentByID (n)

' original code from post
'Set itemFF = doc.GetFirstItem("$FormsTemplateFile")
'newFF = Inputbox("Enter new Forms File name", "Change Forms File", itemFF.values(0))
'Set item = doc.ReplaceItemValue("$FormsTemplateFile", newFF)

'new line to fix problem
Call doc.RemoveItem( "$FormsTemplateFile" )
Call doc.save(True,True)

这是可行的,因为在每个数据库中,图标都有相同的修复 noteid。

关于lotus-notes - 如何对单个邮件文件禁用 iNotes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33181072/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com