BINMAIL(1) UNIX Programmer's Manual BINMAIL(1)
binmail - send or receive mail among users
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
/
\b/b
\bbi
\bin
\bn/
\b/m
\bma
\bai
\bil
\bl [ +
\b+ ] [ -
\b-i
\bi ] [ person ] ...
/
\b/b
\bbi
\bin
\bn/
\b/m
\bma
\bai
\bil
\bl [
\b[ +
\b+ ]
\b] [ -
\b-i
\bi ] -
\b-f
\bf file
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
Note: This is the old version 7 UNIX system mail program.
The default _
\bm_
\ba_
\bi_
\bl command is described in _
\bM_
\ba_
\bi_
\bl(1), and its
binary is in the directory /_
\bu_
\bs_
\br/_
\bu_
\bc_
\bb.
_
\bm_
\ba_
\bi_
\bl with no argument prints a user's mail, message-by-
message, in last-in, first-out order; the optional argument
+
\b+ displays the mail messages in first-in, first-out order.
For each message, it reads a line from the standard input to
direct disposition of the message.
d Delete message and go on to the next.
- Go back to previous message.
s [ _
\bf_
\bi_
\bl_
\be ] ...
Save the message in the named _
\bf_
\bi_
\bl_
\be_
\bs (`mbox' default).
w [ _
\bf_
\bi_
\bl_
\be ] ...
Save the message, without a header, in the named _
\bf_
\bi_
\bl_
\be_
\bs
m [ _
\bp_
\be_
\br_
\bs_
\bo_
\bn ] ...
Mail the message to the named _
\bp_
\be_
\br_
\bs_
\bo_
\bn_
\bs (yourself is
Put unexamined mail back in the mailbox and stop.
!_
\bc_
\bo_
\bm_
\bm_
\ba_
\bn_
\bd
Escape to the Shell to do _
\bc_
\bo_
\bm_
\bm_
\ba_
\bn_
\bd.
* Print a command summary.
An interrupt normally terminates the _
\bm_
\ba_
\bi_
\bl command; the mail
file is unchanged. The optional argument -
\b-i
\bi tells _
\bm_
\ba_
\bi_
\bl to
continue after interrupts.
Printed 7/9/88 April 29, 1985 1
BINMAIL(1) UNIX Programmer's Manual BINMAIL(1)
When _
\bp_
\be_
\br_
\bs_
\bo_
\bn_
\bs are named, _
\bm_
\ba_
\bi_
\bl takes the standard input up to
an end-of-file (or a line with just `.') and adds it to each
_
\bp_
\be_
\br_
\bs_
\bo_
\bn'_
\bs `mail' file. The message is preceded by the
sender's name and a postmark. Lines that look like post-
marks are prepended with `>'. A _
\bp_
\be_
\br_
\bs_
\bo_
\bn is usually a user
name recognized by _
\bl_
\bo_
\bg_
\bi_
\bn(1). To denote a recipient on a
remote system, prefix _
\bp_
\be_
\br_
\bs_
\bo_
\bn by the system name and exclama-
tion mark (see _
\bu_
\bu_
\bc_
\bp(1C)).
The -
\b-f
\bf option causes the named file, for example, `mbox', to
be printed as if it were the mail file.
When a user logs in he is informed of the presence of mail.
/etc/passwd to identify sender and locate persons
/usr/spool/mail/* incoming mail for user *
/usr/spool/mail/*.lock lock for mail directory
dead.letter unmailable text
S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
Mail(1), write(1), uucp(1C), uux(1C), xsend(1), sendmail(8)
Race conditions sometimes result in a failure to remove a
Normally anybody can read your mail, unless it is sent by
_
\bx_
\bs_
\be_
\bn_
\bd(1). An installation can overcome this by making _
\bm_
\ba_
\bi_
\bl
a set-user-id command that owns the mail directory.
Printed 7/9/88 April 29, 1985 2