In the CoreEmailClasses - Script Library (Function QuerySaveExtension)
Added the following code after “QuerySaveExtension = True” and before “End Function.”
REM {Start - added following lines for DISCLAIMER];
Call Source.Refresh
Dim session As New NotesSession
Dim InternetMail, SendTo, CopyTo, BdyText As Variant
InternetMail=False
SendTo=Source.FieldGetText("SendTo")
If Instr(SendTo,".") >0 And Instr(SendTo,"@") Then InternetMail=True
CopyTo=Source.FieldGetText("CopyTo")
If Instr(CopyTo,".") >0 And Instr(CopyTo,"@") Then InternetMail=True
If InternetMail Then
BdyText = Source.FieldGetText( "Body" )
If Instr(BdyText,"This email is intended") = 0 And Instr(BdyText,"However we accept no") =0 Then
Call Source.FieldAppendText ("Body",Chr(10))
Call Source.FieldAppendText ("Body","-- ")
Call Source.FieldAppendText ("Body",Chr(10))
Call Source.FieldAppendText ("Body","This email is intended only for the addressee named above and may contain ")
Call Source.FieldAppendText("Body","confidential or privileged information. If you are not the named addressee or ")
Call Source.FieldAppendText("Body","the person responsible for delivering the message to the named addressee, ")
Call Source.FieldAppendText("Body","please be kind enough to telephone us immediately. The contents should not ")
Call Source.FieldAppendText("Body","be disclosed to anyone nor copies taken. If you contact us by email, we may ")
Call Source.FieldAppendText("Body","store your name and address to facilitate communication. We take reasonable ")
Call Source.FieldAppendText("Body","precautions to ensure that our emails are virus free. However we accept no ")
Call Source.FieldAppendText("Body","responsibility for any virus transmitted by us and recommend that you subject ")
Call Source.FieldAppendText("Body","any incoming email to your own virus checking procedures.")
End If
End If
REM {End - added following lines for DISCLAIMER];