file reorg, pathnames.h, paths.h
[unix-history] / usr / src / libexec / mail.local / mail.local.8
CommitLineData
7abf8d65 1.\" @(#)mail.local.8 6.2 (Berkeley) %G%
dcd1e430 2.\"
7abf8d65 3.TH DELIVERMAIL 1 ""
dcd1e430
KM
4.AT 3
5.SH NAME
7abf8d65 6delivermail \- send or receive mail among users
dcd1e430 7.SH SYNOPSIS
7abf8d65 8.B delivermail
dcd1e430
KM
9[
10.B +
11] [
12.B \-i
13] [ person ] ...
14.br
7abf8d65 15.B delivermail
dcd1e430
KM
16.B "[ + ]"
17[
18.B \-i
19]
20.B \-f
21file
22.LP
23.SH DESCRIPTION
20ac7b24 24Note: This is the old version 7 UNIX system mail program. The default
dcd1e430
KM
25.I mail
26command is described in
7abf8d65 27.IR Mail (1).
dcd1e430 28.PP
20ac7b24
KM
29.I mail
30with no argument prints a user's mail, message-by-message,
31in last-in, first-out order; the optional argument
dcd1e430 32.B +
20ac7b24
KM
33displays the mail messages in first-in, first-out order.
34For each message, it reads a line from the standard input
dcd1e430
KM
35to direct disposition of the message.
36.TP
37newline
38Go on to next message.
39.TP
40d
41Delete message and go on to the next.
42.TP
43p
44Print message again.
45.TP
46\-
47Go back to previous message.
48.TP
49.RI "s [" " file " "] ..."
50Save the message in the named
51.I files
52(`mbox' default).
53.TP
54.RI "w [" " file " "] ..."
55Save the message, without a header, in the named
56.I files
57(`mbox' default).
58.TP
59.RI "m [" " person " "] ..."
60Mail the message to the named
61.I persons
62(yourself is default).
63.TP
64EOT (control-D)
65Put unexamined mail back in the mailbox and stop.
66.TP
67q
68Same as EOT.
69.TP
70.RI ! command
71Escape to the Shell to do
72.IR command .
73.TP
74*
75Print a command summary.
76.PP
20ac7b24
KM
77An interrupt normally terminates the
78.I mail
79command; the mail file is unchanged. The optional argument
dcd1e430 80.B \(mii
20ac7b24 81tells
dcd1e430
KM
82.I mail
83to continue after interrupts.
84.PP
85When
86.I persons
87are named,
88.I mail
20ac7b24 89takes the standard input up to an end-of-file (or a line with just `.')
dcd1e430
KM
90and adds it to each
91.I person's
20ac7b24
KM
92`mail' file. The message is preceded by the sender's name and a postmark.
93Lines that look like postmarks are prepended with `>'. A
dcd1e430
KM
94.I person
95is usually a user name recognized by
96.IR login (1).
97To denote a recipient on a remote system, prefix
98.I person
99by the system name and exclamation mark (see
7abf8d65 100.IR uucp (1)).
dcd1e430
KM
101.PP
102The
103.B \-f
20ac7b24 104option causes the named file, for example, `mbox',
dcd1e430
KM
105to be printed as if it were the mail file.
106.PP
20ac7b24 107When a user logs in he is informed of the presence of mail.
dcd1e430
KM
108.SH FILES
109.ta \w'/usr/spool/mail/*.lock 'u
110/etc/passwd to identify sender and locate persons
111.br
112.li
113/usr/spool/mail/* incoming mail for user *
114.br
115mbox saved mail
116.br
117/tmp/ma* temp file
118.br
119/usr/spool/mail/*.lock lock for mail directory
120.br
121dead.letter unmailable text
122.br
123.SH "SEE ALSO"
7abf8d65 124Mail(1), write(1), uucp(1), uux(1), xsend(1), sendmail(8)
dcd1e430 125.SH BUGS
20ac7b24 126Race conditions sometimes result in a failure to remove a lock file.
dcd1e430
KM
127.PP
128Normally anybody can read your mail, unless it is sent by
129.IR xsend (1).
130An installation can overcome this by making
131.I mail
132a set-user-id command that owns the mail directory.