Examples: GetAllUnreadEntries method
This script gets all the unread entries in the By Category view of the current database, and puts them in the To Be Read folder.
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim vc As NotesViewEntryCollection
Set db = session.CurrentDatabase
Set view = db.GetView("By Category")
Set vc = view.GetAllUnreadEntries()
Call vc.PutAllInfolder("To Be Read")