You can customize your
mailx
session permanently
by including, in your
.mailrc
file, any of the settings
described in
Table D-1.
See the
unset
command in
Appendix F
for information about
temporary settings.
Table D-1: Variables for Customizing Your mailx Session
Variable | Type | Description |
|
Binary |
Treats all network names with the same login name. |
|
Binary |
Saves messages in your
|
|
Binary |
Prompts you for a subject line when you send a message. Enter a blank line to send a message with no subject. |
|
Binary |
Prompts you for carbon-copy recipients for each message you send. |
|
Binary |
Automatically displays the next message
when you delete the current message.
When
|
|
String |
Enables the special-case treatment
of the exclamation point ( |
|
String |
Lets the user specify the default command
to be used when using the vertical bar or pipe ( |
|
String |
Lets the user specify how to convert UUCP style addresses for sendmail. |
|
Numeric |
To be used with a video display (CRT)
terminal.
Reads your mail one screenful at a time using the
For example:
|
|
String |
Allows the user to specify a different location
for
|
|
Binary |
Displays debugging information. |
|
Binary |
Interprets a period on a line by itself
to be the end of a message.
Do not unset
|
|
String |
Specifies the pathname to be used for
the text editor when you use the
If your terminal is a CRT terminal, you can specify
a screen editor for this variable.
See the
|
|
String |
Lets you specify the escape character
(the character that starts an escape command when you are in the middle of
writing a message).
The default is the tilde ( |
|
String |
Allows the user to specify the locale to be used when doing character conversion on outgoing mail messages. |
|
String |
Specifies the directory for storing
mail folders.
A name beginning with a slash, such as
For example, the command
|
|
Binary |
If set, entering a [Return] by itself causes the next mail message to be displayed. If not set, the current message is displayed again. |
|
Binary |
Prints the message header of messages
when
|
|
Binary |
Prevents messages from being moved
to your
|
|
Binary |
Ignores Ctrl/C interrupts, echoing
them as "at" signs ( |
|
Binary |
Ignores Ctrl/D as the end of
an outgoing message.
Do not set
|
|
String |
Lets the user to specify a string to be
inserted at the beginning of each line of text of a mail message that was
included using the
|
|
Binary |
Lets
|
|
Binary |
Prevents deletion of saved messages
when you quit mail.
Usually, the
|
|
String |
Lets the user specify the locale to be used for displaying the mail message. |
|
String |
Lets the user specify the command used
by the
|
|
String |
Lets the user specify the location
for the
|
|
Binary |
Includes you in the list of recipients
when you send mail to an alias of which you are a member.
If
|
|
Binary |
Inhibits display of the header and
version identification when you invoke
|
|
Binary |
Prevents
|
|
Binary |
At times, when responding to a message that
contains other recipients, the addresses of the recipients are relative
to the originator's address.
The
|
|
Binary |
Causes
|
|
Binary |
Causes a form feed to be inserted between
messages that are processed by the pipe ( |
|
String |
Lets the user specify the paging program to be used when displaying messages. For example:
|
|
String |
Lets the user change the
|
|
Binary |
Suppresses printing the version when
first invoked and the message number when you use the
|
|
String |
Specifies the name of a file into which
|
|
Binary |
Reverses the function of the
|
|
Binary |
Lets the user save mail messages into
|
|
Binary |
Causes
|
|
String |
Lets the user to specify the shell to
use when invoking the
|
|
Numeric |
Specifies the number of messages to
be displayed in one screenful when you enter the
|
|
String |
Specifies the pathname of the program
to use to send mail messages.
If this variable is not specified,
|
|
Binary |
Displays the recipient's name instead of the author's name in message headers. |
|
String |
Lets the user to specify a string that is to be
inserted in the mail message when using the
|
|
String |
Lets the user to specify a string that is to be
inserted in the mail message when using the
|
|
Numeric |
Specifies the number of lines the
|
|
Binary |
Invokes
|
|
String |
Specifies the pathname for the screen
editor that will be used when you use the
If your only terminal is a CRT,
you can specify a screen editor for the
|
The following example shows the use of the
verbose
variable, discussed in
Table D-1, that causes
mailx
to display expansion of aliases as message are sent:
Example D-1: The mailx verbose Mode
? set verbose [1] ? alias [2] smith csug@solo.my.company.com smith@my.company.com smith ? mailx tg [3] Subject: Conference Room Starting tomorrow, our weekly meeting will be moved to Meeting Room 4. DAL . [3] EOT csug@solo.my.company.com... Connecting to (local)... about to exec csug@solo.my.company.com... Sent smith,smith@my.company.com... Connecting to your.company.com (smtpr)... 220 your.company.com ESMTP Sendmail 8.7.6/UNX 1.7 (1.1.10.5/28Jun99-0151PM) Tue, 25 Nov 1999 09:52:10 -0500 (EST) >>> HELO solo.my.company.com 250 your.company.com Hello solo.my.company.com [255.255.255.0], pleased to meet you >>> MAIL From:250 ... Sender ok >>> RCPT To:250 Recipient ok >>> RCPT To:250 Recipient ok >>> DATA 354 Enter mail, end with "." on a line by itself >>> . 250 JAA0000022475 Message accepted for delivery >>> QUIT 221 your.company.com closing connection smith@my.company.com,smith... Sent [4] ? q [5]
The following list items correspond to the numbers in the example.
The
verbose
variable
is set.
[Return to example]
The
alias
command
is executed with no parameters to show the contents of the alias.
[Return to example]
A message is then sent,
addressed to the alias
tg
.
[Return to example]
The expansion of aliases as messages are sent is displayed. [Return to example]
The
q
command is executed
to end the
mailx
session.
[Return to example]