I am trying to run an agent that will archive all mail that is over 7 years old that is not in a folder called “Save”, or in a folder called “Attorney Client Privelege”. When a document is over 7 years old, and not in either of those folders - I want to move them to a “deleted items” folder for users to have access to before they are deleted. I would really appreciate any and all scripts and suggestions, or better ways to accomplish this. Thank you.
Subject: The NotesDocumentCollection and NotesViewEntryCollection classes have useful methods…
…like Intersect and Subtract, which will let you take the results of two searches, and combine them in various ways. For instance, you could remove from one all the entries found in the other, which sounds like it would be useful in your case.