Create -> View
Name it SORT DUPS
Based on All Documents
Click CUSTOMIZE
For each of the columns EXCEPT the four you wish to use, delete the column, by clicking on teh column header, then presseing DELETE
For each of the remaining columns:
Double clikc column header
Choose second tab of properties
Set it to sort ascending, using standard sort (not categorized). You can leave alone everything else in the tab below that second line (standard/catgeorized)
Save and close the view
Now, we can write a script that processes this view, and deletes any line which is identical to the previous line. Problem is, you really need Domino Designer to write the script. Maybe, just maybe, we can get it to work in VBScript instead.
Backup your archive (in case this script blows up), create a text file called SORT DUPS.VBS, with the following content, then double-click its file icon when done:
Set s = CreateObject("Notes.NotesS
Set db = s.CreateDatabase("","") 'merely gets access to a "generic" Notes database
db.OpenMail 'switch genetic to mail
Set view = db.getView("SORT DUPS")
Set contents = view.AllEntries
Set row = contents.getFirstEntry
col1 = row.columnValues(0)
col2 = row.columnValues(1)
col3 = row.columnValues(2)
col4 = row.columnValues(3)
Set row = contents.getNextEntry(row)
Do Until row Is Nothing
Set nextRow = contents.getNextEntry(row)
If col1 = row.columnValues(0) And col2 = row.columnValues(1) And col3 = row.columnValues(2) And col4 = row.columnValues(3) Then
row.document.remove
Else
col1 = row.columnValues(0)
col2 = row.columnValues(1)
col3 = row.columnValues(2)
col4 = row.columnValues(3)
End If
Set row = nextRow
Loop
Main Topics
Browse All Topics





by: WHLOWPosted on 2005-02-22 at 01:47:34ID: 13370009
Can anyone direct me to where I should look at to solve this problem beside deleting the emails manually? :)