Im trying to create an agent that automatically replies to all incoming messages.
My agent is configured to run when “After new mail has arrived” and the acts on “newly received mail documents”
To get hold of these in lotusscript i use “unprocesseddocuments” to gather these into a collection where i then respond to them.
Problem is that after processing the documents they still show up as unprocessed the next time the agent is run. So…for every new mail sent to the database everyone gets a new autoreply. How do i get the documents to NOT be in the unprocesseddocuments collection? The only way now is to re-save the agent.
Seems like agent is running on all documents received after agent is saved. I dont want to use flags.