Call notesSession.UpdateProcessedDoc( notesDocument )
This method marks a document so subsequent invocations of the same agent recognize the document as processed. You must explicitly mark a document with this method. No implicit marking occurs in a LotusScript agent.
If a marked document is modified, it is unmarked and will be processed by the next invocation of the agent.
This method marks a document as processed only for the particular agent from which it is called. Using this method in one agent has no effect on the documents that another agent processes.