]> diplodocus.org Git - nmh/blob - docs/historical/mh-jun-1982/man/mail.1
Replaced use of snprintf() with memcpy()/memmove().
[nmh] / docs / historical / mh-jun-1982 / man / mail.1
1
2 .TH MAIL 1 RAND
3 .SH NAME
4 mail \- send or read mail
5 .SH SYNOPSIS
6 .B mail
7 [[\fB\-subject\fR\ subject] [\fB\-cc\ \fRname ...] [\fB\-help\fR] user ...]
8 .SH DESCRIPTION
9 .I Mail
10 is intended as a replacement for the standard Bell mail program
11 (\fIbellmail(1)\fR), compatible with the Rand message-handling
12 system, mh. When invoked without arguments, it simply
13 execs
14 .I inc(1)
15 to incorporate new messages from the user's maildrop.
16 When one or more users is specified, a message is read from
17 the standard input and spooled to a temporary file.
18 .I Mail
19 then invokes
20 .I deliver(8)
21 with the name of the temporary file as
22 its argument to deliver the message to the specified user.
23 .PP
24 The
25 .B subject
26 and
27 .B cc
28 switches can be used to insert the corresponding header components into
29 the message to be delivered.
30 .PP
31 This program is intended for the use of programs
32 such as
33 .I at(1),
34 which expect
35 to automatically send mail to various users.
36 Normally, real people will prefer to use
37 .I comp(1)
38 and
39 .I send(1)
40 to send messages.
41 .SH FILES
42 /etc/mh/deliver
43 .br
44 /tmp/mail*.tmp
45 .br
46 /usr/tmp/mh/lst*.tmp
47 .SH SEE ALSO
48 bellmail(1), rmail(1), send(1), inc(1), deliver(8)