How to find Read/Unread flags of a Mail Documents using lotus Java API

Dear All,

I would like to find wether the document in user folder is read or unread using Java API for domino. I could find if it is deleted using isDeleted() method, but there is no such isRead() or isSeen() for a document? Is there any item that holds this property. In C API, there is $FolderRefFlags to get this information…

Regards,

Venkat

Subject: You might try database.GetAllUnreadDocuments

One thing you need to know - a document does not know it’s unread status, because that depends on the person who is using the database.

A document I’ve read may still be unread to you. Notes keeps a table of undead documents for each user of the database to handle this.

The java method database.GetAllUnreadDocuments will give you a collection of unread documents for a given user. You can then see if the document of interest is in that collection.

Subject: database.getAllUnreadDocumets does not work

Sorry, database.getAllUnreadDocuments throws notImplemented exception. I am having the sameproblem does any body resolved this??

Subject: doc.getRead()

This worked for me:

View vw = database.getView(“($All)”);

Document doc = vw.getFirstDocument();

if (doc.getRead() == false) {

// process only unread mail.

}

Subject: *Be aware that getRead did not work in 8.5.0, it works in 8.5.2, not sure about 8.5.1