|
|
coherent
mail Command mail
Computer mail
mmaaiill [-mmppqqrrvv] [-ff _f_i_l_e] [_u_s_e_r ...]
mmaaiill allows you to exchange electronic mail with other COHERENT
system users, either on your own system or on other systems via
UUCP. Depending upon its form, this command can be used either
to send mail to other users or to read the mail that other users
have sent to you.
***** Sending Mail *****
If you name one or more _u_s_e_rs, mmaaiill assumes that you wish to send
a mail message to each _u_s_e_r. mmaaiill first prints the prompt
Subject:
on the screen, requesting that you give the message a title.
mmaaiill then reads what you type on the standard input. A message
is terminated by <ccttrrll-DD>, by a line that contains only the
character `.', or by a line that contains only the character `?'.
Ending with a question mark prompts mmaaiill to feed the message into
an editor for further editing. The editor used is the one named
in the environmental variable EEDDIITTOORR. If this variable is not
defined, mmaaiill uses eedd.
If you have defined environmental variable AASSKKCCCC to YYEESS, mmaaiill
asks you, after a message is ended, for a list of users to whom
you wish to send a copy of the message.
Finally, mmaaiill prepends the date and the sender's name, and sends
the result to each _u_s_e_r named either on the command line or on
the carbon-copy list with the rrmmaaiill command.
Each _u_s_e_r who has received mail is greeted by the message ``You
have mail.'' when she logs in. mmaaiill normally changes the
contents of the mailbox as the user works with them; however,
mmaaiill has options that allow the contents of the mailbox to remain
unchanged if the user desires.
***** Reading Mail *****
If no _u_s_e_r is named on its command line, mmaaiill reads and displays
the user's mail, message by message. If environmental variable
PPAAGGEERR is defined, mmaaiill will ``pipe'' each message through the
command it names. For example, the .pprrooffiillee command line:
COHERENT Lexicon Page 1
mail Command mail
export PAGER="exec /bin/scat -1"
invokes /bbiinn/ssccaatt for each mail message with the command-line
argument -11 (the digit one).
While reading mail, the user can use any of the following
commands to save, delete, or send each message to another user
interactively.
dd Delete the current message and print the next message.
mm [_u_s_e_r ...]
Mail the current message to each _u_s_e_r given (default:
yourself).
pp Print the current message again.
qq Quit, and update mailbox file to reflect changes.
rr Reverse the direction in which the mailbox is being scanned.
ss [_f_i_l_e ...]
Save the current mail message with the usual header in each
_f_i_l_e (default: $HHOOMMEE/mmbbooxx).
tt [_u_s_e_r ...]
Send a message read from the standard input, terminated by
an end-of-file character or by a line containing only `.' or
`?', to each _u_s_e_r (default: yourself).
ww [_f_i_l_e ...]
Write the current message without the usual header in each
_f_i_l_e (default: $HHOOMMEE/mmbbooxx).
xx Exit without updating the mailbox file.
<nneewwlliinnee>
Print the next message.
- Print the previous message.
EEOOFF Quit, updating mailbox; same as qq.
? Print a summary of available commands.
!_c_o_m_m_a_n_d
Pass _c_o_m_m_a_n_d to the shell for execution.
The following command line options control the sending and
reading of mail.
-ff _f_i_l_e
Read mail from _f_i_l_e instead of from the default,
/uussrr/ssppooooll/mmaaiill/_u_s_e_r.
COHERENT Lexicon Page 2
mail Command mail
-mm Send a message to the terminal of _u_s_e_r if he is logged into
the system when mail is sent.
-pp Print all mail without interaction.
-qq Quit without changing the mailbox if an interrupt character
is typed. Normally, an interrupt character stops printing
of the current message.
-rr Reverse the order of printing messages. Normally, mmaaiill
prints messages in the order in which they were received.
-vv Verbose mode. Show the version number of the mmaaiill program,
and display expanded aliases.
If you wish, you can create a signature file, .ssiigg.mmaaiill, in your
home directory. mmaaiill appends the contents of the signature file
to the end of every mail message you send, as a signature. A
signature can be your system's path name (for uuuuccpp messages),
your telephone number, an amusing _b_o_n _m_o_t, or what you will.
***** Files *****
$HHOOMMEE/ddeeaadd.lleetttteerr -- Message that mmaaiill could not send
$HHOOMMEE/mmbbooxx -- Default saved mail
$HHOOMMEE/.ssiigg.mmaaiill -- Signature file
/ttmmpp/mmaaiill* -- Temporary and lock files
/uussrr/ssppooooll/mmaaiill -- Mailbox directory, filed by user name
***** See Also *****
aalliiaasseess, AASSKKCCCC, ccoommmmaannddss, EEDDIITTOORR, mmkkffnnaammeess, mmssgg, nnppttxx, PPAAGGEERR,
ppaatthhss, uuuuxx
COHERENT Lexicon Page 3
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.