Sun Java System Messenger Express 6 2005Q4 Customization Guide

Modifying the Message Display Window

This section describes how to modify the Sun Java System Messenger Express Message Display window shown in Modifying the Message Display Window.

Figure 3–7 Sun Java System Messenger Express Message Display Window

Message Display window

You can modify the following in the Sun Java System Messenger Express Message Display window:

To Modify the Message Display Window

To modify the Message Display window, edit the appropriate files as follows:

Example—Message Display Window Modifications

The example shown in Example—Message Display Window Modifications moves “Subject” before “To.”

Figure 3–8 Example Message Display Window Modifications

Customized Message Display Window

Example—Message Display Window Modifications shows the necessary changes to be made in file msg_fs.html.


Example 3–7 Altering Message Display Window Layout


function listFrameHTML(doc) {
....
s += header(’from’) + header(’date’) + 
header(’subject’)+ header(’to’) + header(’cc’)
               
....
}


            

Modify the Message Display Window to Display User Defined Header Fields

This section describes how to add and display user defined header fields in the Message Display window.

To Display User Defined Header Fields

Edit the listFrameHTML(doc) function in the msg_fs.html file.

Example—Modifying the Message Display Window to Display User Defined Header Fields

The example shows how to display the user defined field X-document-id in the Message Display Window.

Example—Modifying the Message Display Window to Display User Defined Header Fields shows the changes made to the function listFrameHTML() in the msg_fs.html file.


Example 3–8 Changes made to the msg_fs.html file.


function listFrameHTML(doc) {
....
s += header('from') + header('sentdate')
 + header('to') + header('cc') + header('bcc') 
+ header('subject')

var hdrstr =  getHeaderStr(main.msgFrame.hdr[0], 'X-
document-id
')
if(hdrstr != '') {
s += <tr\><td nowrap align=right valign=top width=5%' 
+ main.base_line 
+ ' bgcolor=' + main.chrome2 
+ '\>' + main.font() + html('X-
document-id
') + nbsp + '</td\>\\n<td ' + main.cellBgString + '\>' 
+ extra + main.font() + hdrstr + '</td\></tr\>\\n'
}
....
}