How can i configure a mailfile to use an other forms file than forms85.nsf?
Subject: Use an agent to set the forms file name in the icon note
The Forms file name is set in the icon note of the mail template. Unfortunately, you can’t edit the icon note of a database using Designer. But you could run an agent to update it. Something like this:
Sub Initialize
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)
Set itemFF = doc.GetFirstItem("$FormsTemplateFile")
newFF = Inputbox("Enter new Forms File name", "Change Forms File", itemFF.values(0))
Set item = doc.ReplaceItemValue("$FormsTemplateFile", newFF)
Call doc.save(True,True)
End Sub
The new Forms file name should be relative to the data directory. Example: iNotes/Forms85.nsf.
Then, you need to set the following NOTES.INI variable. Only a hard coded list of Forms Template File values are supported on the server. The INI setting provides a means to override:
iNotes_WA_FormsFiles=iNotes/Custom85.nsf,iNotes/Forms85.nsf,iNotes/Forms8.nsf,iNotes/Forms7.nsf,iNotes/Forms6.nsf