I’m replying to all so everyone knows this explanation has been sent.
This is from Notes Designer Help. I think there is a way to loop through all docs and then mark them all processed with one command as well. Anyhow, this will do the job.
Call notesSession.UpdateProcessedDoc( notesDocument )
The document to be marked as processed.
You use this method in conjunction with the UnprocessedDocuments property, the UnprocessedFTSearch method, the UnprocessedFTSearchRange method, and the UnprocessedSearch method in NotesDatabase in an agent that runs on all new and modified documents, newly received mail documents, newly modified documents, and pasted documents.
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.