markRead never works with NotesDocument.Save

When using the method save in class notesdocument the third parameter (markread) never works. Documents still appear in the view as unread with respects to the person saving. Is this a bug or is it something else?

flag = notesDocument.Save( force, createResponse [, markRead ] )

i.e

Dim s As New NotesSession

Dim db As NotesDatabase

Dim seldoc As NotesDocument

Dim dc As NotesDocumentCollection

Set dc = s.UpdateProcessedDoc

If dc.Count <> 1 Then

Msgbox “Need to select a doc”, 16, “Test Script”

Exit Sub

End If

Set seldoc = dc.GetFirstDocument

Call seldoc.Save(True, False, True)

Subject: markRead never works with NotesDocument.Save

I think I’ve found a solution. Modify the doc in some way before you do that save. Otherwise it seems to me that it must be internally skipping the save and not changing the “read” state.

Subject: markRead never works with NotesDocument.Save

I have the same trouble ! Here is my code in LotusScript:

Set db = session.CurrentDatabase

Set collection = db.UnprocessedDocuments

Set doc = collection.GetFirstDocument()

Do While Not(doc Is Nothing)

	Call doc.Save(True, False, True)

	Set doc = collection.GetNextDocument(doc)

Loop

Nevertheless, I thing we use the good syntax. PLease help us!

Subject: RE: markRead never works with NotesDocument.Save

I think a have the solution ! In the database property , unckeck the option: “do not mark modified documents as unread”. After this, when you call the save method with true in the third argument, the message is mark as read.

How can we programmatically set this database option using the SetOption for example.

Thank’s

Subject: RE: markRead never works with NotesDocument.Save

this didn’t work for me. I’ll post in a sec what did.