Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. import lotus.domino.*;
  2. public class sample extends NotesThread
  3. {
  4. public static void main(String argv[])
  5. {
  6. sample mySample = new sample();
  7. mySample.start();
  8. }
  9. public void runNotes()
  10. {
  11. try
  12. {
  13. Session s = NotesFactory.createSession();
  14. Database db = s.getDatabase ("Server", "pathToMailDB.nsf");
  15. View vw = db.getView ("By Person"); // this view exists in r8 mail template; may need to change for earlier versions
  16. Document doc = vw.getFirstDocument();
  17. while (doc != null) {
  18. System.out.println (doc.getItemValueString("Subject"));
  19. doc = vw.getNextDocument(doc);
  20. }
  21. }
  22. catch (Exception e)
  23. {
  24. e.printStackTrace();
  25. }
  26. }
  27. }
  28.  
  29. strings file.nsf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement