OpenNTF Mail Experience - Feature Request: Location-dependent signature (code included)
Is it possible to implement a location-dependent signature in the standard template? It requires
- a form Signature, fields Location and all signature fields on the Calendar Profile form
- an option 3 in the Calendar Profile form, to indicate that the signature must be fetched from a Signature document
- a view Signatures, sorted by Location name
- an extension in the CoreEmailClasses, to handle option 3
The following code is all that's required:
If Me.m_nSignatureOption=3 Then ' added for signature documents
Dim location As String
Dim doc_tmp As NotesDocument
Dim view_tmp As NotesView
location= Me.m_session.GetEnvironmentString("Location", True)
location= Left(location, Instr(location,",")-1)
Set view_tmp= Me.m_session.CurrentDatabase.GetView("Signatures")
Set doc_tmp= view_tmp.GetDocumentByKey(location,True)
If Not(doc_tmp Is Nothing) Then
Me.m_strSignature= doc_tmp.Signature(0)
If doc_tmp.SignatureOption(0)="1" Then
Me.m_nSignatureOption= 1
Else
Me.m_nSignatureOption= 2
End If
End If
End If ' Case 3
It has to be inserted just above the line
Select Case Me.m_nSignatureOption
it should be around line 744.
I could send you the template with this extension.
Taken Actions by OwnersDocuments