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