USD:7-4
Mail Reference Manual
Sometimes you will receive a message that has been sent to several people and wish to reply only to
the person who sent it. Reply with a capital R replies to a message, but sends a copy to the sender only.
If you wish, while reading your mail, to send a message to someone, but not as a reply to one of your
messages, you can send the message directly with the mail command, which takes as arguments the names
of the recipients you wish to send to. For example, to send a message to “frank,” you would do:
mail frank
This is to confirm our meeting next Friday at 4.
EOT
&
The mail command can be abbreviated to m.
Normally, each message you receive is saved in the file mbox in your login directory at the time you
leave Mail. Often, however, you will not want to save a particular message you have received because it is
only of passing interest. To avoid saving a message in mbox you can delete it using the delete command.
In our example,
delete 1
will prevent Mail from saving message 1 (from root) in mbox. In addition to not saving deleted messages,
Mail will not let you type them, either. The effect is to make the message disappear altogether, along with
its number. The delete command can be abbreviated to simply d.
Many features of Mail can be tailored to your liking with the set command. The set command has
two forms, depending on whether you are setting a binary option or a valued option. Binary options are
either on or off. For example, the “ask” option informs Mail that each time you send a message, you want
it to prompt you for a subject header, to be included in the message. To set the “ask” option, you would
type
set ask
Another useful Mail option is “hold.” Unless told otherwise, Mail moves the messages from your
system mailbox to the file mbox in your home directory when you leave Mail. If you want Mail to keep
your letters in the system mailbox instead, you can set the “hold” option.
Valued options are values which Mail uses to adapt to your tastes. For example, the “SHELL” option
tells Mail which shell you like to use, and is specified by
set SHELL=/bin/csh
for example. Note that no spaces are allowed in “SHELL=/bin/csh.” A complete list of the Mail options
appears in section 5.
Another important valued option is “crt.” If you use a fast video terminal, you will find that when
you print long messages, they fly by too quickly for you to read them. With the “crt” option, you can make
Mail print any message larger than a given number of lines by sending it through a paging program. This
program is specified by the valued option PA GER. If PA GER is not set, a default paginator is used. For
example, most CRT users with 24-line screens should do:
set crt=24
to paginate messages that will not fit on their screens. In the default state, more (default paginator) prints a
screenful of information, then types --More--. Type a space to see the next screenful.
Another adaptation to user needs that Mail provides is that of aliases. An alias is simply a name
which stands for one or more real user names. Mail sent to an alias is really sent to the list of real users
associated with it. For example, an alias can be defined for the members of a project, so that you can send
mail to the whole project by sending mail to just a single name. The alias command in Mail defines an
alias. Suppose that the users in a project are named Sam, Sally, Steve, and Susan. To define an alias called
“project” for them, you would use the Mail command:
alias project sam sally steve susan