Sun Java System Messenger Express 6 2005Q4 Customization Guide

Modifying the Address (Directory Lookup) Window

This section describes how to modify the Sun Java System Messenger Express Address (directory lookup) window shown in Modifying the Address (Directory Lookup) Window.

Figure 3–16 Messenger Express Address Window

Messenger Express Address Window

You can modify the following in the Address (directory lookup) window:

To Modify the Address (Directory Lookup) Window

To modify the Address window, edit the appropriate files as follows:

Functionally, searchFrameHTML() and addFrameHTML() assign the following functions to the buttons:

Example—Address (Directory Lookup) Window Modifications

The example shown in Example—Address (Directory Lookup) Window Modifications changes “Search Corporate directory” to “Search the Sun Directory” and adds the LDAP server search “Search Yahoo!” to the search list.

Figure 3–17 Example Address (Directory Lookup) Window Modifications

Altering Address (Directory Lookup) window text

Example—Address (Directory Lookup) Window Modifications shows the necessary changes to be made in en/lookup_fs.html.


Example 3–18 Altering Address Window Text


//Search Control
function s_SearchCtrl() {
....
’<option value="3 200"\>
Search the Sun Java System Directory
</option\>\\n’ +
....

Example—Address (Directory Lookup) Window Modifications shows how to add LDAP server search to the list. The file to edit is en/lookup_fs.html.


Example 3–19 Adding LDAP Server Search


//Search Control
function s_SearchCtrl() {
...
’<option value="2 25 ldap://ldap.yahoo.com/"\>’ +
’Search Yahoo!</option\>\\n’ +
’</select\>\\n’ +
...


            

Adding a User Defined Directory to Search

You can add an additional user defined directory to the LDAP server search in the Address (Directory Lookup) Window. This can be accomplished by adding new entry for the LDAP host followed by the DN in the lang/lookup_fs.html.

To a Add User Defined Directory to Search to the Address (Directory Lookup) Window

Add a new entry specifying the LDAP host followed by the DN as the third parameter in the lang/lookup_fs.html file.

Example—Adding a User Defined Directory to Search to the Address (Directory Lookup) Window

The example shows the changes made to Address (Directory Lookup) Window to search for the user defined directory in the host florizel.com with the DN ou=People, o=florizel.com.

Example—Adding a User Defined Directory to Search to the Address (Directory Lookup) Window shows how to add the user defined directory to the search list in the Address (Directory Lookup) Window. The file to edit is lang/lookup_fs.html.


Example 3–20 Adding user defined directory to search.


//Search Control
function s_SearchCtrl() {
...
’<option value="2 25 
ldap://ldap.florizel.com/ou=People,o=florizel.com"\>’ +
’Search Florizel!</option\>\\n’ +
...