Simplified Chinese Solaris System Administrator's Guide

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. So 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.