1MAIL(1)                     General Commands Manual                    MAIL(1)
2
3
4

NAME

6       mail  -  send or receive mail among users
7

SYNOPSIS

9       mail person ...
10       mail [ -r ] [ -q ] [ -p ] [ -f file ]
11

DESCRIPTION

13       Mail  with  no  argument  prints  a user's mail, message-by-message, in
14       last-in, first-out order; the optional  argument  -r  causes  first-in,
15       first-out  order.  If the -p flag is given, the mail is printed with no
16       questions asked; otherwise, for each message, mail reads  a  line  from
17       the standard input to direct disposition of the message.
18
19       newline
20              Go on to next message.
21
22       d      Delete message and go on to the next.
23
24       p      Print message again.
25
26       -      Go back to previous message.
27
28       s [ file ] ...
29              Save the message in the named files (`mbox' default).
30
31       w [ file ] ...
32              Save  the  message, without a header, in the named files (`mbox'
33              default).
34
35       m [ person ] ...
36              Mail the message to the named persons (yourself is default).
37
38       EOT (control-D)
39              Put unexamined mail back in the mailbox and stop.
40
41       q      Same as EOT.
42
43       x      Exit, without changing the mailbox file.
44
45       !command
46              Escape to the Shell to do command.
47
48       ?      Print a command summary.
49
50       An interrupt stops the printing of the current  letter.   The  optional
51       argument  −q  causes mail to exit after interrupts without changing the
52       mailbox.
53
54       When persons are named, mail takes the standard input up to an  end-of-
55       file  (or  a  line  with just `.')  and adds it to each person's `mail'
56       file.  The message is preceded by the sender's  name  and  a  postmark.
57       Lines  that  look  like  postmarks are prepended with `>'.  A person is
58       usually a user name recognized by login(1).  To denote a recipient on a
59       remote  system,  prefix  person by the system name and exclamation mark
60       (see uucp(1)).
61
62       The -f option causes the named file, e.g. `mbox', to be printed  as  if
63       it were the mail file.
64
65       Each  user owns his own mailbox, which is by default generally readable
66       but not writable.  The command does not delete  an  empty  mailbox  nor
67       change its mode, so a user may make it unreadable if desired.
68
69       When a user logs in he is informed of the presence of mail.
70

FILES

72       /usr/spool/mail/*   mailboxes
73       /etc/passwd    to identify sender and locate persons
74       mbox      saved mail
75       /tmp/ma*  temp file
76       dead.letter    unmailable text
77       uux(1)
78

SEE ALSO

80       xsend(1), write(1), uucp(1)
81

BUGS

83       There  is  a  locking  mechanism  intended  to prevent two senders from
84       accessing the same mailbox, but it is not perfect and races are  possi‐
85       ble.
86
87
88
89                                                                       MAIL(1)
Impressum