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