Print this page
12745 man page typos
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man1/mail.1
+++ new/usr/src/man/man1/mail.1
1 1 .\"
2 2 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for
3 3 .\" permission to reproduce portions of its copyrighted documentation.
4 4 .\" Original documentation from The Open Group can be obtained online at
5 5 .\" http://www.opengroup.org/bookstore/.
6 6 .\"
7 7 .\" The Institute of Electrical and Electronics Engineers and The Open
8 8 .\" Group, have given us permission to reprint portions of their
9 9 .\" documentation.
10 10 .\"
11 11 .\" In the following statement, the phrase ``this text'' refers to portions
12 12 .\" of the system documentation.
13 13 .\"
14 14 .\" Portions of this text are reprinted and reproduced in electronic form
15 15 .\" in the SunOS Reference Manual, from IEEE Std 1003.1, 2004 Edition,
16 16 .\" Standard for Information Technology -- Portable Operating System
17 17 .\" Interface (POSIX), The Open Group Base Specifications Issue 6,
18 18 .\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics
19 19 .\" Engineers, Inc and The Open Group. In the event of any discrepancy
20 20 .\" between these versions and the original IEEE and The Open Group
21 21 .\" Standard, the original IEEE and The Open Group Standard is the referee
22 22 .\" document. The original Standard can be obtained online at
23 23 .\" http://www.opengroup.org/unix/online.html.
24 24 .\"
25 25 .\" This notice shall appear on any product containing this material.
26 26 .\"
27 27 .\" The contents of this file are subject to the terms of the
28 28 .\" Common Development and Distribution License (the "License").
29 29 .\" You may not use this file except in compliance with the License.
30 30 .\"
31 31 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
32 32 .\" or http://www.opensolaris.org/os/licensing.
33 33 .\" See the License for the specific language governing permissions
34 34 .\" and limitations under the License.
35 35 .\"
36 36 .\" When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
36 lines elided |
↑ open up ↑ |
37 37 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
38 38 .\" If applicable, add the following below this CDDL HEADER, with the
39 39 .\" fields enclosed by brackets "[]" replaced with your own identifying
40 40 .\" information: Portions Copyright [yyyy] [name of copyright owner]
41 41 .\"
42 42 .\"
43 43 .\" Copyright 1989 AT&T
44 44 .\" Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved
45 45 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
46 46 .\"
47 -.TH MAIL 1 "Jul 24, 2008"
47 +.TH MAIL 1 "May 17, 2020"
48 48 .SH NAME
49 49 mail, rmail \- read mail or send mail to users
50 50 .SH SYNOPSIS
51 51 .SS "Sending Mail"
52 -.LP
53 52 .nf
54 53 \fBmail\fR [\fB-tw\fR] [\fB-m\fR \fImessage_type\fR] \fIrecipient\fR...
55 54 .fi
56 55
57 56 .LP
58 57 .nf
59 58 \fBrmail\fR [\fB-tw\fR] [\fB-m\fR \fImessage_type\fR] \fIrecipient\fR...
60 59 .fi
61 60
62 61 .SS "Reading Mail"
63 -.LP
64 62 .nf
65 63 \fBmail\fR [\fB-ehpPqr\fR] [\fB-f\fR \fIfile\fR]
66 64 .fi
67 65
68 66 .SS "Debugging"
69 -.LP
70 67 .nf
71 68 \fBmail\fR [\fB-x\fR \fIdebug_level\fR] [\fIother_mail_options\fR] \fIrecipient\fR...
72 69 .fi
73 70
74 71 .SH DESCRIPTION
75 -.sp
76 -.LP
77 72 A \fIrecipient\fR is usually a domain style address
78 73 ("\fIuser\fR@\fImachine\fR") or a user name recognized by \fBlogin\fR(1). When
79 74 \fIrecipient\fRs are named, \fBmail\fR assumes a message is being sent. It
80 75 reads from the standard input up to an end-of-file (Control-d) or, if reading
81 76 from a terminal device, until it reads a line consisting of just a period. When
82 77 either of those indicators is received, \fBmail\fR adds the \fIletter\fR to the
83 78 \fImailfile\fR for each \fIrecipient\fR.
84 79 .sp
85 80 .LP
86 81 A \fIletter\fR is composed of some \fIheader lines\fR followed by a blank line
87 82 followed by the \fImessage content\fR. The \fIheader lines\fR section of the
88 83 letter consists of one or more UNIX postmarks:
89 84 .sp
90 85 .in +2
91 86 .nf
92 87 \fBFrom\fR \fIsender date_and_time\fR [\fBremote from\fR \fIremote_system_name\fR]
93 88 .fi
94 89 .in -2
95 90 .sp
96 91
97 92 .sp
98 93 .LP
99 94 followed by one or more standardized message header lines of the form:
100 95 .sp
101 96 .in +2
102 97 .nf
103 98 \fIkeyword-name\fR\fB:\fR [\fIprintable text\fR]
104 99 .fi
105 100 .in -2
106 101 .sp
107 102
108 103 .sp
109 104 .LP
110 105 where \fIkeyword-name\fR is comprised of any printable, non-whitespace
111 106 characters other than colon (`\fB:\fR'). A \fBMIME-version:\fR header line
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
112 107 indicates that the message is formatted as described in RFC 2045. A
113 108 \fBContent-Length:\fR header line, indicating the number of bytes in the
114 109 \fImessage content\fR, is always present unless the letter consists of only
115 110 header lines with no message content. A \fBContent-Type:\fR header line that
116 111 describes the type of the \fImessage content\fR (such as text/plain,
117 112 application/octet-stream, and so on) is also present, unless the letter
118 113 consists of only header lines with no message content. Header lines may be
119 114 continued on the following line if that line starts with white space.
120 115 .SH OPTIONS
121 116 .SS "Sending Mail"
122 -.sp
123 -.LP
124 117 The following command-line arguments affect sending mail:
125 118 .sp
126 119 .ne 2
127 120 .na
128 121 \fB\fB-m\fR \fImessage_type\fR\fR
129 122 .ad
130 123 .RS 19n
131 124 A \fBMessage-Type:\fR line is added to the message header with the value of
132 125 \fImessage_type\fR.
133 126 .RE
134 127
135 128 .sp
136 129 .ne 2
137 130 .na
138 131 \fB\fB-t\fR\fR
139 132 .ad
140 133 .RS 19n
141 134 A \fBTo:\fR line is added to the message header for each of the intended
142 135 \fIrecipient\fRs.
143 136 .RE
144 137
145 138 .sp
146 139 .ne 2
147 140 .na
148 141 \fB\fB-w\fR\fR
149 142 .ad
150 143 .RS 19n
151 144 A letter is sent to a remote recipient without waiting for the completion of
152 145 the remote transfer program.
153 146 .RE
154 147
155 148 .sp
156 149 .LP
157 150 If a letter is found to be undeliverable, it is returned to the sender with
158 151 diagnostics that indicate the location and nature of the failure. If \fBmail\fR
159 152 is interrupted during input, the message is saved in the file \fBdead.letter\fR
160 153 to allow editing and resending. \fBdead.letter\fR is always appended to, thus
161 154 preserving any previous contents. The initial attempt to append to (or create)
162 155 \fBdead.letter\fR is in the current directory. If this fails, \fBdead.letter\fR
163 156 is appended to (or created in) the user's login directory. If the second
164 157 attempt also fails, no \fBdead.letter\fR processing is done.
165 158 .sp
166 159 .LP
167 160 \fBrmail\fR only permits the sending of mail; \fBuucp\fR(1C) uses \fBrmail\fR
168 161 as a security precaution. Any application programs that generate mail messages
169 162 should be sure to invoke \fBrmail\fR rather than \fBmail\fR for message
170 163 transport and/or delivery.
171 164 .sp
172 165 .LP
173 166 If the local system has the Basic Networking Utilities installed, mail can be
174 167 sent to a recipient on a remote system. There are numerous ways to address mail
175 168 to recipients on remote systems depending on the transport mechanisms available
176 169 to the local system. The two most prevalent addressing schemes are Domain-style
177 170 and UUCP-style.
178 171 .sp
179 172 .ne 2
180 173 .na
181 174 \fBDomain-style addressing\fR
182 175 .ad
183 176 .RS 27n
184 177 Remote recipients are specified by appending an `\fB@\fR' and domain (and
185 178 possibly sub-domain) information to the recipient name (such as
186 179 \fBuser@sf.att.com\fR). (The local system administrator should be consulted for
187 180 details on which addressing conventions are available on the local system.)
188 181 .RE
189 182
190 183 .sp
191 184 .ne 2
192 185 .na
193 186 \fBUUCP-style addressing\fR
194 187 .ad
↓ open down ↓ |
61 lines elided |
↑ open up ↑ |
195 188 .RS 27n
196 189 Remote recipients are specified by prefixing the recipient name with the remote
197 190 system name and an exclamation point, such as \fBsysa!user.\fR If \fBcsh\fR(1)
198 191 is the default shell, \fBsysa\e!user\fR should be used. A series of system
199 192 names separated by exclamation points can be used to direct a letter through an
200 193 extended network (such as \fBsysa!sysb!sysc!user\fR or
201 194 \fBsysa\e!sysb\e!sysc\e!user\fR).
202 195 .RE
203 196
204 197 .SS "Reading Mail"
205 -.sp
206 -.LP
207 198 The following command-line arguments affect reading mail:
208 199 .sp
209 200 .ne 2
210 201 .na
211 202 \fB\fB-e\fR\fR
212 203 .ad
213 204 .RS 11n
214 205 Test for the presence of mail. \fBmail\fR prints nothing.
215 206 .sp
216 207 An exit status of \fB0\fR is returned if the user has mail. Otherwise, an exit
217 208 status of \fB1\fR is returned.
218 209 .RE
219 210
220 211 .sp
221 212 .ne 2
222 213 .na
223 214 \fB\fB-E\fR\fR
224 215 .ad
225 216 .RS 11n
226 217 Similar to \fB-e\fR, but tests only for the presence of \fBnew\fR mail.
227 218 .sp
228 219 An exit status of \fB0\fR is returned if the user has new mail
229 220 to read, an exit status of \fB1\fR is returned if the user has no
230 221 mail, or an exit status of \fB2\fR is returned if the user has mail
231 222 which has already been read.
232 223 .RE
233 224
234 225 .sp
235 226 .ne 2
236 227 .na
237 228 \fB\fB-h\fR\fR
238 229 .ad
239 230 .RS 11n
240 231 A window of headers are initially displayed rather than the latest message. The
241 232 display is followed by the \fB?\fR prompt.
242 233 .RE
243 234
244 235 .sp
245 236 .ne 2
246 237 .na
247 238 \fB\fB-p\fR\fR
248 239 .ad
249 240 .RS 11n
250 241 All messages are printed without prompting for disposition.
251 242 .RE
252 243
253 244 .sp
254 245 .ne 2
255 246 .na
256 247 \fB\fB-P\fR\fR
257 248 .ad
258 249 .RS 11n
259 250 All messages are printed with \fIall\fR header lines displayed, rather than the
260 251 default selective header line display.
261 252 .RE
262 253
263 254 .sp
264 255 .ne 2
265 256 .na
266 257 \fB\fB-q\fR\fR
267 258 .ad
268 259 .RS 11n
269 260 \fBmail\fR terminates after interrupts. Normally an interrupt causes only the
270 261 termination of the message being printed.
271 262 .RE
272 263
273 264 .sp
274 265 .ne 2
275 266 .na
276 267 \fB\fB-r\fR\fR
277 268 .ad
278 269 .RS 11n
279 270 Messages are printed in first-in, first-out order.
280 271 .RE
281 272
282 273 .sp
283 274 .ne 2
284 275 .na
285 276 \fB\fB-f\fR \fIfile\fR\fR
286 277 .ad
287 278 .RS 11n
288 279 \fBmail\fR uses \fIfile\fR (such as \fBmbox\fR) instead of the default
289 280 \fImailfile\fR.
290 281 .RE
291 282
292 283 .sp
293 284 .LP
294 285 \fBmail\fR, unless otherwise influenced by command-line arguments, prints a
295 286 user's mail messages in last-in, first-out order. The default mode for printing
296 287 messages is to display only those header lines of immediate interest. These
297 288 include, but are not limited to, the UNIX \fBFrom\fR and \fB>From\fR postmarks,
298 289 \fBFrom:\fR, \fBDate:\fR, \fBSubject:\fR, and \fBContent-Length:\fR header
299 290 lines, and any recipient header lines such as \fBTo:\fR, \fBCc:\fR, \fBBcc:\fR,
300 291 and so forth. After the header lines have been displayed, \fBmail\fR displays
301 292 the contents (body) of the message only if it contains no unprintable
302 293 characters. Otherwise, \fBmail\fR issues a warning statement about the message
303 294 having binary content and \fBnot\fR display the content. This can be overridden
304 295 by means of the \fBp\fR command.
305 296 .sp
306 297 .LP
307 298 For each message, the user is prompted with a \fB?\fR and a line is read from
308 299 the standard input. The following commands are available to determine the
309 300 disposition of the message:
310 301 .sp
311 302 .ne 2
312 303 .na
313 304 \fB\fB#\fR\fR
314 305 .ad
315 306 .RS 22n
316 307 Print the number of the current message.
317 308 .RE
318 309
319 310 .sp
320 311 .ne 2
321 312 .na
322 313 \fB\fB\(mi\fR\fR
323 314 .ad
324 315 .RS 22n
325 316 Print previous message.
326 317 .RE
327 318
328 319 .sp
329 320 .ne 2
330 321 .na
331 322 \fB<new-line>,\fB+\fR, or \fBn\fR\fR
332 323 .ad
333 324 .RS 22n
334 325 Print the next message.
335 326 .RE
336 327
337 328 .sp
338 329 .ne 2
339 330 .na
340 331 \fB\fB!\fR\fIcommand\fR\fR
341 332 .ad
342 333 .RS 22n
343 334 Escape to the shell to do \fIcommand\fR.
344 335 .RE
345 336
346 337 .sp
347 338 .ne 2
348 339 .na
349 340 \fB\fBa\fR\fR
350 341 .ad
351 342 .RS 22n
352 343 Print message that arrived during the \fBmail\fR session.
353 344 .RE
354 345
355 346 .sp
356 347 .ne 2
357 348 .na
358 349 \fB\fBd\fR, or \fBdp\fR\fR
359 350 .ad
360 351 .RS 22n
361 352 Delete the current message and print the next message.
362 353 .RE
363 354
364 355 .sp
365 356 .ne 2
366 357 .na
367 358 \fB\fBd\fR \fIn\fR\fR
368 359 .ad
369 360 .RS 22n
370 361 Delete message number \fIn\fR. Do not go on to next message.
371 362 .RE
372 363
373 364 .sp
374 365 .ne 2
375 366 .na
376 367 \fB\fBdq\fR\fR
377 368 .ad
378 369 .RS 22n
379 370 Delete message and quit \fBmail\fR.
380 371 .RE
381 372
382 373 .sp
383 374 .ne 2
384 375 .na
385 376 \fB\fBh\fR\fR
386 377 .ad
387 378 .RS 22n
388 379 Display a window of headers around current message.
389 380 .RE
390 381
391 382 .sp
392 383 .ne 2
393 384 .na
394 385 \fB\fBh\fR\fIn\fR\fR
395 386 .ad
396 387 .RS 22n
397 388 Display a window of headers around message number \fIn\fR.
398 389 .RE
399 390
400 391 .sp
401 392 .ne 2
402 393 .na
403 394 \fB\fBh a\fR\fR
404 395 .ad
405 396 .RS 22n
406 397 Display headers of all messages in the user's \fImailfile\fR.
407 398 .RE
408 399
409 400 .sp
410 401 .ne 2
411 402 .na
412 403 \fB\fBh d\fR\fR
413 404 .ad
414 405 .RS 22n
415 406 Display headers of messages scheduled for deletion.
416 407 .RE
417 408
418 409 .sp
419 410 .ne 2
420 411 .na
421 412 \fB\fBm\fR [ \fIpersons\fR ]\fR
422 413 .ad
423 414 .RS 22n
424 415 Mail (and delete) the current message to the named \fIpersons\fR.
425 416 .RE
426 417
427 418 .sp
428 419 .ne 2
429 420 .na
430 421 \fB\fIn\fR\fR
431 422 .ad
432 423 .RS 22n
433 424 Print message number \fIn\fR.
434 425 .RE
435 426
436 427 .sp
437 428 .ne 2
438 429 .na
439 430 \fB\fBp\fR\fR
440 431 .ad
441 432 .RS 22n
442 433 Print current message again, overriding any indications of binary (that is,
443 434 unprintable) content.
444 435 .RE
445 436
446 437 .sp
447 438 .ne 2
448 439 .na
449 440 \fB\fBP\fR\fR
450 441 .ad
451 442 .RS 22n
452 443 Override default brief mode and print current message again, displaying all
453 444 header lines.
454 445 .RE
455 446
456 447 .sp
457 448 .ne 2
458 449 .na
459 450 \fB\fBq\fR, or Control-d\fR
460 451 .ad
461 452 .RS 22n
462 453 Put undeleted mail back in the \fImailfile\fR and quit \fBmail\fR.
463 454 .RE
464 455
465 456 .sp
466 457 .ne 2
467 458 .na
468 459 \fB\fBr\fR [ \fIusers\fR ]\fR
469 460 .ad
470 461 .RS 22n
471 462 Reply to the sender, and other \fIusers\fR, then delete the message.
472 463 .RE
473 464
474 465 .sp
475 466 .ne 2
476 467 .na
477 468 \fB\fBs\fR [ \fIfiles\fR ]\fR
478 469 .ad
479 470 .RS 22n
480 471 Save message in the named \fIfiles\fR (\fBmbox\fR is default) and delete the
481 472 message.
482 473 .RE
483 474
484 475 .sp
485 476 .ne 2
486 477 .na
487 478 \fB\fBu\fR [ \fIn\fR ]\fR
488 479 .ad
489 480 .RS 22n
490 481 Undelete message number \fIn\fR (default is last read).
491 482 .RE
492 483
493 484 .sp
494 485 .ne 2
495 486 .na
496 487 \fB\fBw\fR [ \fIfiles\fR ]\fR
497 488 .ad
498 489 .RS 22n
499 490 Save message contents, without any header lines, in the named \fIfiles\fR
500 491 (\fBmbox\fR is default) and delete the message.
501 492 .RE
502 493
503 494 .sp
504 495 .ne 2
505 496 .na
506 497 \fB\fBx\fR\fR
507 498 .ad
508 499 .RS 22n
509 500 Put all mail back in the \fImailfile\fR unchanged and exit \fBmail\fR.
510 501 .RE
511 502
512 503 .sp
513 504 .ne 2
514 505 .na
515 506 \fB\fBy\fR [ \fIfiles\fR ]\fR
516 507 .ad
517 508 .RS 22n
518 509 Same as \fB-w\fR option.
519 510 .RE
520 511
521 512 .sp
522 513 .ne 2
523 514 .na
524 515 \fB\fB?\fR\fR
525 516 .ad
526 517 .RS 22n
527 518 Print a command summary.
528 519 .RE
529 520
530 521 .sp
531 522 .LP
532 523 When a user logs in, the presence of mail, if any, is usually indicated. Also,
533 524 notification is made if new mail arrives while using \fBmail\fR.
534 525 .sp
535 526 .LP
536 527 The permissions of \fImailfile\fR can be manipulated using \fBchmod\fR(1) in
537 528 two ways to alter the function of \fBmail\fR. The other permissions of the file
↓ open down ↓ |
321 lines elided |
↑ open up ↑ |
538 529 can be read-write (\fB0666\fR), read-only (\fB0664\fR), or neither read nor
539 530 write (\fB0660\fR) to allow different levels of privacy. If changed to other
540 531 than the default (mode \fB0660\fR), the file is preserved even when empty to
541 532 perpetuate the desired permissions. (The administrator can override this file
542 533 preservation using the \fBDEL_EMPTY_MAILFILE\fR option of \fBmailcnfg\fR.)
543 534 .sp
544 535 .LP
545 536 The group \fBID\fR of the mailfile must be \fBmail\fR to allow new messages to
546 537 be delivered, and the mailfile must be writable by group \fBmail\fR.
547 538 .SS "Debugging"
548 -.sp
549 -.LP
550 539 The following command-line arguments cause \fBmail\fR to provide debugging
551 540 information:
552 541 .sp
553 542 .ne 2
554 543 .na
555 544 \fB\fB-x\fR \fIdebug_level\fR\fR
556 545 .ad
557 546 .RS 18n
558 547 \fBmail\fR creates a trace file containing debugging information.
559 548 .RE
560 549
561 550 .sp
562 551 .LP
563 552 The \fB-x\fR option causes \fBmail\fR to create a file named
564 553 \fB/tmp/MLDBG\fR\fIprocess_id\fR that contains debugging information relating
↓ open down ↓ |
5 lines elided |
↑ open up ↑ |
565 554 to how \fBmail\fR processed the current message. The absolute value of
566 555 \fIdebug_level\fR controls the verboseness of the debug information. \fB0\fR
567 556 implies no debugging. If \fIdebug_level\fR is greater than \fB0\fR, the debug
568 557 file is retained \fIonly\fR if \fBmail\fR encountered some problem while
569 558 processing the message. If \fIdebug_level\fR is less than \fB0\fR, the debug
570 559 file is always be retained. The \fIdebug_level\fR specified via \fB-x\fR
571 560 overrides any specification of \fBDEBUG\fR in \fB/etc/mail/mailcnfg\fR. The
572 561 information provided by the \fB-x\fR option is esoteric and is probably only
573 562 useful to system administrators.
574 563 .SS "Delivery Notification"
575 -.sp
576 -.LP
577 564 Several forms of notification are available for mail by including one of the
578 565 following lines in the message header.
579 566 .sp
580 567 .LP
581 568 \fBTransport-Options:\fR [ \fB/\fR\fIoptions\fR ]
582 569 .sp
583 570 .LP
584 571 \fBDefault-Options:\fR [ \fB/\fR\fIoptions\fR ]
585 572 .sp
586 573 .LP
587 574 \fB>To:\fR \fIrecipient\fR [ \fB/\fR\fIoptions\fR ]
588 575 .sp
589 576 .LP
590 577 Where the "/\fIoptions\fR" can be one or more of the following:
591 578 .sp
592 579 .ne 2
593 580 .na
594 581 \fB\fB/delivery\fR\fR
595 582 .ad
596 583 .RS 15n
597 584 Inform the sender that the message was successfully delivered to the
598 585 \fIrecipient\fR's mailbox.
599 586 .RE
600 587
601 588 .sp
602 589 .ne 2
603 590 .na
604 591 \fB\fB/nodelivery\fR\fR
605 592 .ad
606 593 .RS 15n
607 594 Do not inform the sender of successful deliveries.
608 595 .RE
609 596
610 597 .sp
611 598 .ne 2
612 599 .na
613 600 \fB\fB/ignore\fR\fR
614 601 .ad
615 602 .RS 15n
616 603 Do not inform the sender of failed deliveries.
617 604 .RE
618 605
619 606 .sp
620 607 .ne 2
621 608 .na
622 609 \fB\fB/return\fR\fR
623 610 .ad
624 611 .RS 15n
625 612 Inform the sender if mail delivery fails. Return the failed message to the
626 613 sender.
627 614 .RE
628 615
629 616 .sp
630 617 .ne 2
631 618 .na
632 619 \fB\fB/report\fR\fR
↓ open down ↓ |
46 lines elided |
↑ open up ↑ |
633 620 .ad
634 621 .RS 15n
635 622 Same as \fB/return\fR except that the original message is not returned.
636 623 .RE
637 624
638 625 .sp
639 626 .LP
640 627 The default is \fB/nodelivery/return\fR. If contradictory options are used, the
641 628 first is recognized and later, conflicting, terms are ignored.
642 629 .SH OPERANDS
643 -.sp
644 -.LP
645 630 The following operand is supported for sending mail:
646 631 .sp
647 632 .ne 2
648 633 .na
649 634 \fB\fIrecipient\fR\fR
650 635 .ad
651 636 .RS 13n
652 637 A domain style address ("\fIuser\fR@\fImachine\fR") or user login name
653 638 recognized by \fBlogin\fR(1).
654 639 .RE
655 640
656 641 .SH USAGE
657 -.sp
658 -.LP
659 642 See \fBlargefile\fR(5) for the description of the behavior of \fBmail\fR and
660 643 \fBrmail\fR when encountering files greater than or equal to 2 Gbyte ( 2^31
661 644 bytes).
662 645 .SH ENVIRONMENT VARIABLES
663 -.sp
664 -.LP
665 646 See \fBenviron\fR(5) for descriptions of the following environment variables
666 647 that affect the execution of \fBmail\fR: \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and
667 648 \fBNLSPATH\fR.
668 649 .sp
669 650 .ne 2
670 651 .na
671 652 \fB\fBTZ\fR\fR
672 653 .ad
673 654 .RS 6n
674 655 Determine the timezone used with date and time strings.
675 656 .RE
676 657
677 658 .SH EXIT STATUS
678 -.sp
679 -.LP
680 659 The following exit values are returned:
681 660 .sp
682 661 .ne 2
683 662 .na
684 663 \fB\fB0\fR\fR
685 664 .ad
686 665 .RS 6n
687 666 Successful completion when the user had mail.
688 667 .RE
689 668
690 669 .sp
691 670 .ne 2
692 671 .na
693 672 \fB\fB1\fR\fR
694 673 .ad
695 674 .RS 6n
696 675 The user had no mail or an initialization error occurred.
697 676 .RE
698 677
↓ open down ↓ |
9 lines elided |
↑ open up ↑ |
699 678 .sp
700 679 .ne 2
701 680 .na
702 681 \fB\fB>1\fR\fR
703 682 .ad
704 683 .RS 6n
705 684 An error occurred after initialization.
706 685 .RE
707 686
708 687 .SH FILES
709 -.sp
710 688 .ne 2
711 689 .na
712 690 \fB\fBdead.letter\fR\fR
713 691 .ad
714 692 .RS 20n
715 693 unmailable text
716 694 .RE
717 695
718 696 .sp
719 697 .ne 2
720 698 .na
721 699 \fB\fB/etc/passwd\fR\fR
722 700 .ad
723 701 .RS 20n
724 702 to identify sender and locate \fIrecipient\fRs
725 703 .RE
726 704
727 705 .sp
728 706 .ne 2
729 707 .na
730 708 \fB\fB$HOME/mbox\fR\fR
731 709 .ad
732 710 .RS 20n
733 711 saved mail
734 712 .RE
735 713
736 714 .sp
737 715 .ne 2
738 716 .na
739 717 \fB\fB$MAIL\fR\fR
740 718 .ad
741 719 .RS 20n
742 720 variable containing path name of \fImailfile\fR
743 721 .RE
744 722
745 723 .sp
746 724 .ne 2
747 725 .na
748 726 \fB\fB/tmp/MLDBG\fR*\fR
749 727 .ad
750 728 .RS 20n
751 729 debug trace file
752 730 .RE
753 731
754 732 .sp
755 733 .ne 2
756 734 .na
757 735 \fB\fB/var/mail/*.lock\fR\fR
758 736 .ad
759 737 .RS 20n
760 738 lock for mail directory
761 739 .RE
762 740
763 741 .sp
764 742 .ne 2
765 743 .na
766 744 \fB\fB/var/mail/:saved\fR\fR
767 745 .ad
768 746 .RS 20n
769 747 directory for holding temp files to prevent loss of data in the event of a
770 748 system crash
771 749 .RE
772 750
773 751 .sp
774 752 .ne 2
↓ open down ↓ |
55 lines elided |
↑ open up ↑ |
775 753 .na
776 754 \fB\fB/var/mail/\fIuser\fR\fR\fR
777 755 .ad
778 756 .RS 20n
779 757 incoming mail for \fIuser\fR; that is, the \fImailfile\fR
780 758 .RE
781 759
782 760 .sp
783 761 .ne 2
784 762 .na
785 -\fB\fBvar/tmp/ma\fR*\fR
763 +\fB\fB/var/tmp/ma\fR*\fR
786 764 .ad
787 765 .RS 20n
788 766 temporary file
789 767 .RE
790 768
791 769 .SH SEE ALSO
792 -.sp
793 -.LP
794 770 \fBchmod\fR(1), \fBcsh\fR(1), \fBlogin\fR(1), \fBmailx\fR(1), \fBuucp\fR(1C),
795 771 \fBuuencode\fR(1C), \fBvacation\fR(1), \fBwrite\fR(1), \fBattributes\fR(5),
796 772 \fBenviron\fR(5), \fBlargefile\fR(5)
797 773 .sp
798 774 .LP
799 775 \fISolaris Advanced User\&'s Guide\fR
800 776 .SH NOTES
801 -.sp
802 -.LP
803 777 The interpretation and resulting action taken because of the header lines
804 778 described in the Delivery Notifications section only occur if this version of
805 779 \fBmail\fR is installed on the system where the delivery (or failure) happens.
806 780 Earlier versions of \fBmail\fR might not support any types of delivery
807 781 notification.
808 782 .sp
809 783 .LP
810 784 Conditions sometimes result in a failure to remove a lock file.
811 785 .sp
812 786 .LP
813 787 After an interrupt, the next message might not be printed. Printing can be
814 788 forced by typing a \fBp\fR.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX