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