binmail.1
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 167 行
1
167 行
.\" SCCSID: @(#)binmail.1 8.1 9/11/90.\" SCCSID: @(#)binmail.1 8.1 9/11/90.TH binmail 1.SH Namebinmail \- send or receive mail among users.SH Syntax.B /bin/mail[\fB+\fR] [\fB\-i\fR] [\|\fIperson...\fR\|] .br.B /bin/mail[\fB+\fR][\fB\-i\fR] \fB\-f\fI file\fR.PP.SH Description.NXR "binmail program".NXR "mail" "sending".NXA "binmail program" "mail program"This is the old version 7 UNIX system mail program. The default.PN mailcommand is described in .MS mail 1 ,and its binary is in the directory .PN /usr/ucb .The .PN /bin/mailprogram is still used to actually delivera mail message into the users system-wide mailbox (.PN /usr/spool/mail/*),however, the reading of these messages has been replaced withthe program .PN /usr/ucb/mail .Do not remove .PN /bin/mailfrom your system..PPThe.PN mailcommandwith 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 inputto direct the disposition of the message..NXR "binmail program" "command reference list".PPIssue the following commands from the .PN mailprogram prompt: .TP 20<CR>Go on to next message.TP 20dDelete message and go on to the next..TP 20pPrint message again..TP 20\-Go back to previous message..TP 20.RI "s [" "file..." "] Save the message in the named.I files(`mbox' default)..TP 20.RI "w [" "file..." "] Save the message, without a header, in the named.I files(`mbox' default)..TP 20.RI "m [" "person..." "] Mail the message to the named.I persons(yourself is default)..TP 20EOT (control-D)Put unexamined mail back in the mailbox and stop..TP 20qSame as EOT..TP 20.RI ! commandEscape to the Shell to do.IR command ..TP 20*Print a command summary..PPAn interrupt normally terminates the .PN mailcommand; the mail file is unchanged. .PPWhen.I personsare named,.PN mailtakes the standard input up to an end-of-file (or a line with just `.')and adds it to each.I person'smail file. The message is preceded by the sender's name and a postmark.Lines that look like postmarks are prepended with `>'. A.I personis usually a user name recognized by .MS login 1 .To denote a recipient on a remote system, prefix .I personby the system name and exclamation mark. For further information, see.MS uucp 1c ..PPThe .PN mailprogram sends a message to the screen that there is mail when the user logs in..PPWhen .PN /bin/mailis used to deliver mail, (usually .MS sendmail 8calls .PN /bin/mailto do this), a mailbox is created for the userin the directory .PN /usr/spool/mail ,if it doesn't already exist. The mailboxis created with the mode 700 so that only its ownercan access it.In addition, the directory .PN /usr/spool/mailhas the mode 777 with the sticky bit set. The mode is 777 so thatother mail programs, notably.PN /usr/ucb/mail ,can create the appropriate lock files to prevent another process fromwriting to the mailbox at the same time. The sticky bit set on thedirectory prevents one user from unlinking another user's mailbox..SH Options.NXR "binmail program" "options".TP 20.B \-fDisplays mail messages contained in the specified file (next argument) in place of your mailbox file..TP 20.B \-iNotifies mail to continue after interrupts. .SH Restrictions.NXR "binmail program" "restricted"Race conditions sometimes result in a failure to remove a lock file..SH Files.ta \w'/usr/spool/mail/*.lock 'u/etc/passwd to identify sender and locate persons.br.li/usr/spool/mail/* incoming mail for user *.brmbox saved mail.br/tmp/ma* temp file.br/usr/spool/mail/*.lock lock for mail directory.brdead.letter unmailable text.br.SH See Alsomail(1), uucp(1c), uux(1c), write(1), sendmail(8)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?