mail.1

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 894 行 · 第 1/2 页

1
894
字号
in your home directory when you quit. This is the defaultaction for messages if you did.I notset the.I holdoption. .TP\fBnext\fR (\fBn\fR, \fB+\fR or CR).NXR "next command (mail)" Goes to the next message insequence and types it.With an argument list, it types the next matching message..TP\fBpreserve\fR (\fBpre\fR).NXR "preserve command (mail)"Takes a message list and marks each message in it to besaved in the user's system mailbox instead of in.I mbox .Synonymous with the.PN hold command..TP\fBprint\fR (\fBp\fR).NXR "print command (mail)"Takes a message list and types out each message on the user's terminal,without printing any specified ignored fields..TP\fBPrint\fR (\fBP\fR).NXR "print command (mail)".NXA "print command (mail)" "print command (mail)".NXA "print command (mail)" "ignore command (mail)"Prints a message in its entirety, including specified ignored fields..TP\fBquit\fR (\fBq\fR).NXR "quit command (mail)"Terminates the session.  All undeleted, unsaved messages are saved in theuser's.I mboxfile in his login directory; all messages marked with.PN holdor.PN preserveor that were never referenced are savedin his system mailbox; and all other messages are removed from his systemmailbox.  If new mail arrives during the session, the userreceives the message:You have new mail.  If given while editing amailbox file with the.PN \-fflag, then the edit file is rewritten.  A return to the Shell iseffected, unless the rewrite of the edit file fails, in which case the usercan escape with the.PN exitcommand..TP\fBreply\fR (\fBr\fR).NXR "reply command (mail)"Takes a message list and sends mail to the sender and allrecipients of the specified message.The default message must not be deleted..TP\fBReply\fR (\fBR\fR).NXR "reply command (mail)"Replies to originator of the message. Does not reply to otherrecipients of the original message..TP.B respond.NXR "respond command (mail)"Takes a message list and sends mail to the sender and allrecipients of the specified message.  Synonymous with.PN reply ..TP\fBsave\fR (\fBs\fR).NXR "save command (mail)".NXA "preserve command (mail)" "hold command (mail)".NXA "respond command (mail)" "reply command (mail)"Takes a message list and a file name and appends each message to the end of the file. The messages are saved in the order in which they appear in themail directory, not in the order given in the message list.The filename, which is enclosed in quotes, followed by the linecount and character count, is displayed on the user's terminal.  .TP\fBset\fR (\fBse\fR).NXR "set command (mail)"Prints all variable values when no argumentsare given.  Otherwise, the.PN set command sets the specifiedoption.  Arguments either take the form.EXoption=value.EEor.EXoption.EE.TP\fBshell\fR (\fBsh\fR).NXR "shell command (mail)"Invokes an interactive version of the shell..TP.B size.NXR "size command (mail)"Takes a message list and prints out the size (in characters) of eachmessage.The size of the messages are printed in the order that theyappear in the mail directory, not in the order given in the list..TP\fBsource\fR (\fBso\fR).NXR "source command (mail)"Reads.PN mailcommands from a file..TP.B top.NXR "top command (mail)"Takes a message list and prints the top few lines of each.  The number oflines printed is controlled by the variable.PN toplinesand defaults to five..TP\fBtype\fR (\fBt\fR).NXR "type command (mail)" Takes a message list and types out each message on theuser's terminal, without printing any specified ignored fields.Synonymous with.PN print ..TP\fBtype\fR (\fBT\fR).NXR "type command (mail)"Prints a message in its entirety, includingspecified ignored fields.  Synonymous with.PN print ..TP.B unalias.NXR "unalias command (mail)"Takes a list of names defined by.PN aliascommands and cancels the list of users.  The group namesno longer have any significance..TP\fBundelete\fR (\fBu\fR).NXR "undelete command (mail)"Takes a message list and marks each one as.I notbeing deleted..TP.B unset.NXR "unset command (mail)"Takes a list of option names and discards their remembered values;the inverse of.PN set ..TP\fBvisual\fR (\fBv\fR).NXR "visual command (mail)"Takes a message list and invokes the display editor on each message..TP\fBwrite\fR (\fBw\fR).NXR "write command (mail)"Takes a message list and a file name and appends eachmessage to the end of the file.  Synonymous with.PN save ..TP\fBxit\fR (\fBx\fR).NXR "xit command (mail)"Returns to the Shell without modifying the user'ssystem mailbox,.I mbox ,or edit file in .PN \-f .Synonymous with.PN exit ..TP.B z.NXR "z command (mail)"Presents message headers in windowfulls as described under the.PN headerscommand.  You can move forward to the next window with the.B zcommand. Also, you can move to the previous window by using.BR z\- ..NXA "alias command (mail)" "unalias command (mail)".NXA "delete command (mail)" "undelete command (mail)".NXA "set command (mail)" "unset command (mail)".NXA "write command (mail)" "save command (mail)".NXA "xit command (mail)" "exit command (mail)".PPThe following is a summary of the tilde escape functions thatyou can use when composing mail messages.  Note that you can onlyinvoke thesefunctions from within the body of a mail message and thatthe sequences are only executed if they are placed at thebeginning of lines..NXR "mail program" "tilde escapes".TP 12n.BR ~! commandExecutes the indicated shell command, then returns to the message..TP\fB~?  		Prints a brief summary of tilde commands..TP\fB~:Executes the mail commands. (For example, the command .PN ~:10 prints out message number 10 while.PN ~:-prints out the previous message. 		.TP\fB~c\fR name ...Adds the given names to the list of carbon copy recipients..TP.B ~dReads the file named dead.letter from your home directory into the message..TP.B ~eInvokes the text editor on the message you are typing.  After theediting session is finished, you may continue appending text to themessage..TP\fB~f\fR messagesReads the named messages into the message being sent.If no messages are specified, reads in the current message..TP.B ~hEdits the message header fields by typing each one in turn and allowingthe user to append text to the end or to modify the field by using thecurrent terminal erase and kill characters..TP\fB~m\fR messagesReads the named messages into the message being sent, shifted one tab space to the right.  If no messages are specified, reads the current message..TP.B ~pPrints the message on your terminal, prefaced by the message headerfields..TP.B ~qAborts the message being sent, copying the message todead.letterin your home directory if the.B saveoption is set..TP\fB~r\fR filenameReads the named file into the message..TP\fB~s\fR stringCauses the named string to become the current subject field..TP\fB~t\fR name ...Adds the given names to the direct recipient list..TP.B ~vInvokes an alternate editor (defined by the VISUAL option) on themessage.  Usually, the alternate editor is ascreen editor.  After you quit the editor, you can resume appendingtext to the end of your message..TP\fB~w\fR filenameWrites the message onto the named file..TP\fB~\||\|\fRcommandPipes the message through the command as a filter.  If the command givesno output or terminates abnormally, retains the original text of themessage.  The commandfmt(1)is often used as.I commandto rejustify the message..TP.BR ~~ stringInserts the string of text in the message prefaced by a single tilde (~).  Ifyou have changed the escape character, then you should doublethat character in order to send it..PPOptions are controlled via the.PN setand.PN unsetcommands.  Options may be either binary or string.  Ifthey are binary you should see whether or not they are set; if they are stringit is the actual value that is of interest..PPThe binary options include the following:.NXR "set command (mail)" "options".TP 15n.B appendCauses messages saved in.I mboxto be appended rather than prepended.(This is set in/usr/lib/Mail.rcon version 7 systems.).TP.B askCauses.I mailto prompt you for the subject of each message you send.  Ifyou simply respond with a new line, no subject field is sent..TP.B askccAsks you at the end of each message whether you want to send acarbon copy of themessage to additional recipients.  Responding with a newline indicates yoursatisfaction with the current list..TP.B autoprintCauses the.PN deletecommand to behave like.PN dp\- thus, after deleting a message, the next one is typedautomatically..TP.B debugCauses.PN mailto output information useful for debugging.PN mail .Setting the binary option.I debugis the same as specifying.PN \-don the command line..TP.B dotCauses.PN mailto interpret a period alone on a line as the terminatorof a message you are sending..TP.B holdHolds messages in the system mailboxby default..TP.B ignoreCauses interrupt signals from your terminal to be ignored and echoed asat signs (@)..TP.B ignoreeofCauses.PN mailto refuse to accept a control-d as the end of a message..TP.B msgpromptPrompts you for the message text andindicates how to terminate the message..TP.B metooIncludes the sender in the distribution group receivinga mail message..TP.B nosavePrevents .PN mailfrom copying aborted messages into the dead.letter filein your home directory..TP.B quietSuppresses the printing of the version when first invoked..TP.B verboseDisplays the details of each message's deliveryon the user's terminal.  Setting the.PN verboseoption is the same as typing.B \-von the command line..PPThe string options include the following:.TP 15nEDITORPathname of the text editor to use in the.PN editcommand and ~e escape.  If not defined, then a default editor is used..TPSHELLPathname of the shell to use in the.B !command and the ~! escape.  A default shell is used if this option isnot defined..TPVISUALPathname of the text editor to use in the.PN visualcommand and ~v escape..TP.B crtThreshold to determine how long a message mustbe before.PN moreis used to read it..TP.B escapeThe first character of this option gives the character touse in the place of tilde (~) to denote escapes, if defined..TP.B folderDirectory name to use for storing folders ofmessages. If this name begins with a backslash (/).PN mailconsiders it an absolute pathname; otherwise, thefolder directory is found relative to your home directory..TP.B recordPathname of the file used to record all outgoingmail.  If it is not defined, then outgoing mail is not so saved..TP.B toplinesThe number of lines of a message that is printed outwith the.B topcommand; normally, the first five lines are printed..SH Return ValuesIf mail is invoked with the \fB\-e\fR option, the following exit values arereturned: .nf0	the user has mail1	the user has no mail.fi.SH Files.if n .ta 2.5i.if t .ta 1.8i/usr/spool/mail/* 	mail directory	.br~/mbox	your read mail.br~/.mailrc	file giving initial mail commands.br/tmp/R#	temporary for editor escape.br/usr/lib/Mail.help*	help files.br/usr/lib/Mail.rc	system initialization file.brMessage*	temporary for editing messages.SH See Alsobinmail(1), fmt(1), newaliases(1), aliases(5),mailaddr(7), sendmail(8).NXR "mail program".NXR "mail" "sending"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?