Hi, I am trying to use the NotesAdministrationProcess class to basically rename a user’s mail file. I haven’t exactly found the best way to do it, but I did find a MoveReplica method that should basically do the rename. The one problem that seems to occur is that it actually makes a copy of the mail file rather than “moving” it. Is this the expected behavior? Is there a better way of doing this?
Thanks.
Eric
Subject: MoveReplica in the NotesAdministrationProcess class is making a replica copy… original file is still there
MoveReplica is doing things correctly, but I would ask is it a bad things to have the user’s mail file not reflect its new name? The person document will have the history of all the names a user has – so you can still tie things back to the original user.
But if you were going to rename the filename itself, you would have to make a new replica, but remember to update the person document for that user as well.
Otherwise, I would shutdown the router task, update the person document with the correct file name, then shutdown down the server. After the server shuts down rename the file of that user mail database and start the server back up. OF course in a large organization this is not the ideal solution.
I myself do not rename the user’s mail file just because the Notes username was renamed.
HTH – Cheers
Subject: RE: MoveReplica in the NotesAdministrationProcess class is making a replica copy… original file is still there
Thanks for the response Joe. Basically, what I am trying to do is automate the process of renaming users, and renaming the mailfile was one of the requirements from our admin team. The MoveReplica method looked to be the best way to do that. I will try to look around and see if there is anything else I can do. If anyone else has done this successfully, I would welcome some techniques.
Thanks,
Eric