You can write a simple Java application that receives the handle to the mail database you are interested in, then gets the standard view handle in that database and then iterates over the documents in the view. Here is an example (approximate):
import lotus.domino.*; public class sample extends NotesThread { public static void main(String argv[]) { sample mySample = new sample(); mySample.start(); } public void runNotes() { try { Session s = NotesFactory.createSession(); Database db = s.getDatabase ("Server", "pathToMailDB.nsf"); View vw = db.getView ("By Person");
The getItemValueString method gets the specified field value. Other important fields of a mail document are: From, SendTo, CopyTo, BlindCopyTo, Subject, Body, and DeliveredDate. Note that Body is an element with rich text, and getItemValueString returns only the text part. DeliveredDate is a NotesDate element, and for this you will need to use the getItemValueDateTimeArray method.
source share