Setting a Multiple Mailfile Path with the IDM Notes Driver

Setting a Multiple Mailfile Path with the IDM Notes Driver


A Forum reader recently asked:

"I'm IDM newbie and I'm having a problem with configuring the Notes Driver. In the Notes configuration file, there is glabal configuration value for "mailfile-path". I want to assign a specific path (mailfile-path) for different types of user types, such as group1 -->mail\mail1, and group2 ---> mail\mail2. I tried to make the policy set the value directly to mailfile, with the mailfile-path attribute, but it still did not work.

Any guidelines on how I could set the multiple mailfile-path?"

And here's the reply from Geoffrey Carman ...


There are two types of attributes you might need to add to a document, and they are described in the documentation for the Notes driver. For the default policy in the driver, the Sub-Create rule has a policy set called "AddNotesAccount".

You can use rules like the example below. This basically sets the Notes ID file created to the value of, and the MailFile name to value of UniqueID.nsf. You can see the verbs; you just need to generate the custom logic to decide when to use it. Enjoy.

<description>Set Mail File Name and to UniqueID</description>
<comment xml:space="preserve">Set the mail file name on user create to
UniqueID.nsf and ID file to</comment>
<comment name="author" xml:space="preserve">Geoffrey Carman</comment>
<comment name="version" xml:space="preserve">1</comment>
<comment name="lastchanged" xml:space="preserve">Jan 11, 2007</comment>
<if-class-name mode="nocase" op="equal">User</if-class-name>
<do-add-dest-attr-value name="MailFile">
<token-attr name="uniqueID"/>
<token-text xml:space="preserve">.nsf</token-text>
<do-set-xml-attr expression="../add[@class-name='User']"
<token-attr name="uniqueID"/>
<token-text xml:space="preserve">.id</token-text>


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2007-03-28 15:29
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.