Manage Learn to apply best practices and optimize your operations.

Emergency antivirus

This tip describes setting up virus protection on your system.

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.

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("$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

Dig Deeper on Domino Resources - Part 4

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...