Korean Solaris System Administrator's Guide

Customizing Mail Transmission and Storage

As you compose a mail message on the keyboard, the Korean Solaris Mail Tool sends the characters in EUC (8-bit) format to the workstation or TTY screen for display. But for transmitting the message across the network, receiving, and storing received messages, the tool has several standard transmission formats available.

Mail Transmission Formats

The initial default setting for mail transmission is the commonly used (7-bit) ISO 2022 encoding standard. This is the same as having the following command line in a user's .mailrc file:


set encoding=ko_KR.iso2022-7 

However, Mail Tool can instead transmit via N-byte, Johap (Packed or Combination), or EUC format as directed by one of the following command lines in a user's ~/.mailrc file:


set encoding=ko_KR.nbyte

or:


set encoding=ko_KR.johap

or:


set encoding=ko_KR.euc

To set Mail Tool to use one of these transmission formats, perform the following steps:

  1. Put the encoding=ko_KR.format command line in your .mailrc file.

  2. Follow the directions in the following section "Making .mailrc Changes Take Effect."

Mail Reception and Storage Formats

The Korean Solaris Mail Tool stores incoming mail in the /var/mail directory in whatever format the mail arrives.

Then, as Mail Tool reads the messages from the spool file and sends them to the screen display, it converts the text from the original ISO 2022, N-byte or Johap format, to EUC format, for display on the screen.

When you then direct Mail Tool to save a message, its initial default setting is to save the message in EUC format, regardless of the format originally received. This initial default setting is the same as having the following command line in the user's .mailrc file:


set folderconv 

To have mail stored in its originally received format (ISO2022-7, N-byte, Johap, or other formats) and not converted, use a command line, such as the following, in the user's .mailrc file:


set nofolderconv 

The following section explains how to make such command lines take effect.

Making .mailrc Changes Take Effect

Whenever Mail Tool is started up from the Workspace Programs menu, or a mailx session is started at a system prompt, the mail utility uses the settings in ~/.mailrc. After a Mail Tool or session is running, it ignores changes in the .mailrc file. Therefore, changes to .mailrc affect only Mail Tool or mail sessions that are started after the changes are saved.

However, changes made to .mailrc after a mailx session has been started can be put into effect in that existing mailx session using the source .mailrc command issued inside the session, as follows:


system% mailx 
(Ongoing mailx session during which .mailrc is changed,
for example from another Shell Tool window.)

& source .mailrc 
(Continuing mailx session during which new .mailrc settings are in effect.) 

&
 q
system% 

In the above example, the user types q to "quit" the mailx program.

Report of Incoming Mail

comsat is the server process that listens for reports of incoming mail and notifies users, who have requested notification, when mail arrives. To be able to this notification in Korean, the following steps should be taken:

File /etc/inet/inetd.conf contains the line:


comsat dgram udp wait root /usr/sbin/incomsat in.comsat

This line should be manually edited by superuser (root) or changed by running install_comsat.


comsat dgram udp wait root /usr/SUNWale/sbin/in.comsat in.comsat -l ko