I developed this code at the time of the Love Bug virus. When code was ready, it took us a few minutes to completely block our mail system from any modifications of this virus (any files with the VBS extension. The current version of the code checks multiple attachments for partial file name matches and prevents users from opening or previewing possibly infected mail. The code is placed in the Queryopen of the Memo form in the mail file template. After each update, we issuing replace design command through the server console to pass it to a mail file. The process is very fast, and you can block any files in the matter of minutes.
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
Editor's note: Our experts offered this warning on the following tip: "Changing the Memo form for all mail files across a large organization (which this tip requires you to do) is generally a bad idea. Lotus owns the design of the mail files, and usually we recommend against modifying them."
Dim FileNameString(7) As String FileNameString(0)= ".VBS" FileNameString(1)= ".PIF" FileNameString(2)= "babypic.exe" FileNameString(3)= "NakedWife.exe" FileNameString(4)= "SYSKEY.EXE" FileNameString(5)= ".BAT" FileNameString(7)= ".COM" If source.isnewdoc Then Exit Sub Dim doc As notesdocument Dim item As notesitem Dim subj As Variant Set doc=source.document subj= doc.getitemvalue( "$File" ) If subj(0)="" Then Exit Sub Forall z In doc.items If Ucase(z.name)="$FILE" Then Forall q In FileNameString If Instr(1, Ucase(z.values(0)) , Ucase( q ) ) <> 0 Then continue=False Exit Sub End If End Forall End If End Forall