MAIL(1MH) COMMAND REFERENCE MAIL(1MH)
NAME
mail - read or send MH mail
SYNOPSIS
mail [ username... ] [ -cc username... ] [ -body text ] [
-subject text ]
DESCRIPTION
If mail is called with no arguments, it calls inc to
incorporate mail from the user's incoming mail drop
/usr/spool/mail/$USER) into the user's inbox folder. The
new messages being incorporated are assigned numbers
starting with the next highest number in the folder. If the
inbox folder doesn't exist, the user will be queried prior
to its creation. As the messages are processed, a scan
listing of the new mail is produced. See inc(1mh) for
further details.
If any arguments are passed to mail, it attempts to send
mail to the userids listed. Names listed after the -cc
switch will be entered in the 'Cc:' component of the
message. Names listed before the -cc switch (or if the
switch is omitted) are added to the 'To:' component of the
message.
The string following the -subject switch forms the
'Subject:' component of the message. If the switch is
omitted, there will be no 'Subject:' component in the
message.
If the -body switch is present, the string that follows it
will form the body of the message being constructed. If the
switch is omitted, the body will be taken from standard
input.
The primary purpose of the mail program is to provide an
interface that is compatible with the old mail system so
that programs that wish to send mail may still do so.
Your .mh_profile can contain the following entries:
Path To determine the user's MH directory
Folder-Protect For protection on new folders
Msg-Protect For protection on new messages
OPTIONS
-body text
The text following the -body switch will form the body of
the message being constructed.
-cc name
Names listed after the -cc switch will be entered in the
Printed 4/6/89 1
MAIL(1MH) COMMAND REFERENCE MAIL(1MH)
"Cc:" of the message.
-subject text
The text following the -subject switch will be entered in
the "Subject:" component of the message.
FILES
$HOME/.mh_profile
The user profile
/usr/spool/mail/$USER
The user's mail drop
CAVEATS
The mail program refuses to send mail messages of length
zero.
SEE ALSO
comp(1mh), dist(1mh), fmt(1mh), folder(1mh), forw(1mh),
inc(1mh), mail(1mh), mh(1mh), mhl(1mh), mhpath(1mh),
next(1mh), pick(1mh), prev(1mh), prompter(1mh), refile(1mh),
repl(1mh), rmf(1mh), rmail(1), rmm(1mh), scan(1mh),
send(1mh), show(1mh), mh(5mh), and mh_profile(5mh).
Printed 4/6/89 2
%%index%%
na:288,79;
sy:367,424;
de:791,2165;
op:2956,455;3771,334;
fi:4105,252;
ca:4357,192;
se:4549,753;
%%index%%000000000130