This chapter includes information on the customizable features in Mail. This chapter has the following sections:
Before you customize Mail, you need to decide your customization goals. There are several common customization scenarios.
To customize the skin, you need to understand the structure of the underlying Cascading Style Sheet (CSS). The skin color, font style, or font size can be globally changed in the CSS file.
Since the mail client supports internationalization, most of the text used in mail are referenced through a special array named i18n. The strings are saved in <uwc-deploy-path>/webmail/en/i18n.js. To replace the text with a desired text, you need to look up the string from <uwc-deploy-path>/webmail/en/i18n.js and modify it. The default encoding for all files is UTF-8, and you need to ensure that you use the right one, especially when the text contains non-Latin characters.
Mail supports customization specific to each domain. A user who belongs to a specific domain will be directed to a different view (skin) on signing in. Refer to chapter Chapter 8, Customizing Domains for more information on customizing mail for domain.
All Image files are stored in <uwc-deployed-path>/webmail/imx. You can look up the image file name from HTML files and replace the URL with the required one.
To add extra features, you can create a new function using the listFrameHTML() function in the corresponding _fs_lr.jsp You can also add new functions to be called by listFrameHTML(). The new content will then be inserted in the mail application. If the extra feature involves more technical aspects that are not documented, contact Sun Professional Services for assistance.
The CSS files that are used in mail are:
Detects the browser to select which .css file should be used
Maintains the common user interface codes shared by messaging listing and Search message result listing
Checks for Domain security
Maintains the initialization and globally shared functions
User interface codes for folder tree
The frame work related file is en/mail.html, which is the first file loaded by the browser.
This section provides information on the various Mail windows and screens :
Message Search window
The Inbox screen, shown in Figure 4–1, enables you to view all messages and its basic features. For example, subject, from, received and size. The Inbox screen gets new messages and enables you to search for or delete old messages, as well as move messages into other folders.
The Message display, shown in Figure 4–2displays the message selected from the Inbox screen. The Message display gives the option of replying to the sender, forwarding the message, moving the message to a different folder, or deleting the message. The Message screen also enables navigation to the next or previous message.
Folder Management, shown in Figure 4–3 displays all folders that can be accessed. The Folder Management screen lists the number of messages contained and the size of each folder. The Folders screen also enables creating new folders, renaming or deleting old ones, subscribing or unsubscribing shared folder, sharing folder, moving a folder within another folder, updating the inbox, and composing new messages. Like the Inbox, the Folders Management also enables collection of external mails.
The Compose window, shown in Figure 4–4, is used to compose a new message. You can also use the window to save a draft or attach a file to the message, look up a recipient in the address book, access the help file, or cancel the composition altogether. Mail recipients can be added in “To”, “Cc”, or “Bcc” fields. You can edit the message in text or HTML format. In the Compose window you can also check the spelling. The Compose window also enables you to set the mail priority or request for a return receipt.
The Message Search window, shown in Figure 4–5, is primarily used to search messages by entering sender’s name, subject, body text, or recipient’s name. You can also delete the messages from the search list.