Removed documents not modified in x days

My company would like to find out the impact of implementing the Replication space saver setting to remove documents not modified in 100 days. They would like to see what “space” it saves on the servers. Is there a way to project the savings before implementing? I can make a hidden view in the mail template to show me all email older then 100 days and all not older then 100 days with size totals, but I do not want to have to look at all users. I would like to find a more feasible way. Any suggestions or comments would be appreciated. I believe their reasoning is to help keep users under quota and to eliminate old emails that could be false comments now. Thank you.

Subject: Removed documents not modified in x days

People treat their mail differently (some tidy up, others don’t), so I don’t think you can get a reasonable estimate without looking at a lot of mail databases. One way you could do that is with code. Build an agent which will go through the old documents, add up their sizes, and email that total to you. Put it in an agent set to run on schedule in the mail template. It’ll get in people’s mail files, run, and send you the information. Once it’s done that, remove it from the template.

One other thing that crosses my mind is that if that solution won’t work for you, you might, depending on the size of your user community, be able to look at a subset of mail databases. For example, if most people have mail databases in the 30-40mb range, they’re already running fairly lean and you won’t recover much space that way. Identify the largest mailboxes and see how much of that is old mail. That’s where the bulk of any space savings will be.

Subject: RE: Removed documents not modified in x days

Thank you for the response. I don’t write much code. Is it simple to write an agent to do what you suggested?

Subject: RE: Removed documents not modified in x days

As such things go, I think it’s relatively simple. What you’ll probably do is this:

  1. Get a handle on the old documents. There are a few ways of doing that; the easiest for you is probably to build a view containing the old documents and use the NotesView class to get your hands on them.

  2. Loop through the documents, using the Size property of the NotesDocument class to add up the sizes of the documents.

  3. Create a new document, set the SendTo to your name, put the total size of old documents in there somewhere (Subject is probably a good place), and send it.

The documentation and examples for NotesView and NotesDocument should get you pretty far.