BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / binmail.0
CommitLineData
362b077f
C
1
2
3
4BINMAIL(1) UNIX Programmer's Manual BINMAIL(1)
5
6
7
8N\bNA\bAM\bME\bE
9 binmail - send or receive mail among users
10
11S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
12 /\b/b\bbi\bin\bn/\b/m\bma\bai\bil\bl [ +\b+ ] [ -\b-i\bi ] [ person ] ...
13 /\b/b\bbi\bin\bn/\b/m\bma\bai\bil\bl [\b[ +\b+ ]\b] [ -\b-i\bi ] -\b-f\bf file
14
15D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
16 Note: This is the old version 7 UNIX system mail program.
17 The default _\bm_\ba_\bi_\bl command is described in _\bM_\ba_\bi_\bl(1), and its
18 binary is in the directory /_\bu_\bs_\br/_\bu_\bc_\bb.
19
20 _\bm_\ba_\bi_\bl with no argument prints a user's mail, message-by-
21 message, in last-in, first-out order; the optional argument
22 +\b+ displays the mail messages in first-in, first-out order.
23 For each message, it reads a line from the standard input to
24 direct disposition of the message.
25
26 newline
27 Go on to next message.
28
29 d Delete message and go on to the next.
30
31 p Print message again.
32
33 - Go back to previous message.
34
35 s [ _\bf_\bi_\bl_\be ] ...
36 Save the message in the named _\bf_\bi_\bl_\be_\bs (`mbox' default).
37
38 w [ _\bf_\bi_\bl_\be ] ...
39 Save the message, without a header, in the named _\bf_\bi_\bl_\be_\bs
40 (`mbox' default).
41
42 m [ _\bp_\be_\br_\bs_\bo_\bn ] ...
43 Mail the message to the named _\bp_\be_\br_\bs_\bo_\bn_\bs (yourself is
44 default).
45
46 EOT (control-D)
47 Put unexamined mail back in the mailbox and stop.
48
49 q Same as EOT.
50
51 !_\bc_\bo_\bm_\bm_\ba_\bn_\bd
52 Escape to the Shell to do _\bc_\bo_\bm_\bm_\ba_\bn_\bd.
53
54 * Print a command summary.
55
56 An interrupt normally terminates the _\bm_\ba_\bi_\bl command; the mail
57 file is unchanged. The optional argument -\b-i\bi tells _\bm_\ba_\bi_\bl to
58 continue after interrupts.
59
60
61
62
63Printed 7/9/88 April 29, 1985 1
64
65
66
67
68
69
70BINMAIL(1) UNIX Programmer's Manual BINMAIL(1)
71
72
73
74 When _\bp_\be_\br_\bs_\bo_\bn_\bs are named, _\bm_\ba_\bi_\bl takes the standard input up to
75 an end-of-file (or a line with just `.') and adds it to each
76 _\bp_\be_\br_\bs_\bo_\bn'_\bs `mail' file. The message is preceded by the
77 sender's name and a postmark. Lines that look like post-
78 marks are prepended with `>'. A _\bp_\be_\br_\bs_\bo_\bn is usually a user
79 name recognized by _\bl_\bo_\bg_\bi_\bn(1). To denote a recipient on a
80 remote system, prefix _\bp_\be_\br_\bs_\bo_\bn by the system name and exclama-
81 tion mark (see _\bu_\bu_\bc_\bp(1C)).
82
83 The -\b-f\bf option causes the named file, for example, `mbox', to
84 be printed as if it were the mail file.
85
86 When a user logs in he is informed of the presence of mail.
87
88F\bFI\bIL\bLE\bES\bS
89 /etc/passwd to identify sender and locate persons
90 /usr/spool/mail/* incoming mail for user *
91 mbox saved mail
92 /tmp/ma* temp file
93 /usr/spool/mail/*.lock lock for mail directory
94 dead.letter unmailable text
95
96S\bSE\bEE\bE A\bAL\bLS\bSO\bO
97 Mail(1), write(1), uucp(1C), uux(1C), xsend(1), sendmail(8)
98
99B\bBU\bUG\bGS\bS
100 Race conditions sometimes result in a failure to remove a
101 lock file.
102
103 Normally anybody can read your mail, unless it is sent by
104 _\bx_\bs_\be_\bn_\bd(1). An installation can overcome this by making _\bm_\ba_\bi_\bl
105 a set-user-id command that owns the mail directory.
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129Printed 7/9/88 April 29, 1985 2
130
131
132