Home > Domino Tips > Administrator > Server > Moving an iNotes mail file to a new directory on the server
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SERVER

Moving an iNotes mail file to a new directory on the server


David Broscious
05.28.2002
Rating: -4.14- (out of 5) Hall of fame tip of the month winner


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


My company is in the midst of an iNotes roll out. Our userbase is spread out across multiple locations throughout the United States. Subsets of our iNotes users periodically switch from one location to another. When devising a filepath naming convention, we decided to include the user's location as part of the filepath in order to simplify administration. Our model iNotes URL is: servername/mail/location/username.nsf

Recently, when we had to implement our first location change, we experienced a problem. When we moved John Doe from "LocationA" to "LocationB",

 from "servername/mail/LocationA/jdoe.nsf"
 to "servername/mail/LocationB/jdoe.nsf"

He could no longer synchronize his iNotes subscription. He received the error message "File Does Not Exist" in the Synchronization Status column of the iNotes Sync Manager.

According to Lotus Support TechNote #180667, you will receive this error after moving the "main DOLS-enabled database" to a new directory or subdirectory. In the case of iNotes, the user's mail file is the main (and only) DOLS-enabled database in the application. The TechNotes's solution is as follows: "To avoid this issue, do not move the main database after it has been enabled for DOLS".

We found this to be unacceptable. Given the nature of our userbase, we have to be able to move iNotes mail files from directory to directory as circumstances warrant. So I began to dig into the iNotes/DOLS infrastructure and, after getting a fair amount of dirt under my fingernails, came up with the following solution:

You can move an iNotes mail file to a new directory/subdirectory, if you make two very simple changes to the iNotes mail file's DOLS Offline Configuration profile document. This document defines, among other things, what will be synchronized and when it will be synchronized. Here are the steps:

1. Physically move the mail file to the new directory.

2. From somewhere within the mail file, run the following code:

 v := @Subset(@DbName; -1);
 @SetProfileField("DOLSOfflineConfiguration" ; "RequiredFilesToReplicate"; v );
 @SetProfileField("DOLSOfflineConfiguration" ; "MainNSF"; v )

 [I placed the code behind an action visible from the Inbox]

That's it. Once you've run the code, the user will be able to successfully synchronize his/her iNotes mail file from its new location on the server.

Code

see above

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Server
Move a Lotus Domino server to a new certifier without a reinstall
Securely connect Lotus Domino servers on different domains
Track and record Lotus Notes user logins to Domino Server
Use SMTP outbound authentication to relay hosts in Lotus Notes Domino 8
Log off idle Lotus Notes users for better Domino Server performance
Copy Lotus Notes databases from the Domino Server console command line
How to perform an in-place upgrade of Lotus Domino server hardware
Daylight Saving Time 2007 -- seven helpful tips for Lotus Notes administrators
FileZilla
How and why to change replica IDs during a Lotus Notes Domino upgrade

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts