⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mail5.nr

📁 早期freebsd实现
💻 NR
📖 第 1 页 / 共 2 页
字号:
command goes to the next message and types it.  If given a message list,.b nextgoes to the first such message and types it.  Thus,.(lnext root.)lgoes to the next message sent by.q rootand types it.  The.b nextcommand can be abbreviated to simply a newline, which means that onecan go to and type a message by simply giving its message number orone of the magic characters.q "^".q "."or.q "$".Thus,.(l\&..)lprints the current message and.(l4.)lprints message 4, as described previously.\fBNext\fP can be abbreviated to \fBn\fP..ip "\fBpreserve\fP\ \ "Same as.b hold .Cause a list of messages to be held in your system mailbox when you quit.\fBPreserve\fP can be abbreviated to \fBpre\fP..ip "\fBprint\fP\ \ "Print the specified messages. If the.b crtvariable is set, messages longer than the number of lines it indicatesare paged through the command specified by the \fBPAGER\fP variable.The \fBprint\fP command can be abbreviated to \fBp\fP..ip "\fBquit\fP\ \ "Terminates the session, saving all undeleted, unsaved and unwritten messages in the user's \fImbox\fP file in their login directory(messages marked as having been read), preserving allmessages marked with \fBhold\fP or \fBpreserve\fP or never referencedin their system mailbox.Any messages that were deleted, saved, written or saved to \fImbox\fP areremoved from their system mailbox.If new mail has arrived during the session, the message``You have new mail'' is given.  If given while editing a mailbox filewith the \fB\-f\fP flag, then the edit file is rewritten.A return to the Shell is effected, unless the rewrite of edit file fails,in which case the user can escape with the \fBexit\fP command.\fBQuit\fP can be abbreviated to \fBq\fP..ip "\fBreply\fP or \fBrespond\fP\ \ "Frame a reply to a single message.The reply will be sent to theperson who sent you the message (to which you are replying), plus allthe people who received the original message, except you.  You canadd people using the \fB~t\fP, \fB~c\fP and \fB~b\fPtilde escapes.  The subject in your reply is formed by prefacing thesubject in the original message with.q "Re:"unless it already began thus.If the original message included a.q "reply-to"header field, the reply will go.i onlyto the recipient named by.q "reply-to."You type in your message using the same conventions available to youthrough the.b mailcommand.The \fBreply\fP (and \fBrespond\fP) command can be abbreviated to \fBr\fP..ip "\fBretain\fP\ \ "Add the list of header fields named to the \fIretained list\fP.Only the header fields in the retain listare shown on your terminal when you print a message.All other header fields are suppressed.The.b Typeand.b Printcommands can be used to print a message in its entirety.If.b retainis executed with no arguments, it lists the current set ofretained fields..ip "\fBsave\fP\ \ "It is often useful to be able to save messages on related topicsin a file.  The.b savecommand gives you the ability to do this.  The.b savecommand takes as an argument a list of message numbers, followed bythe name of the file in which to save the messages.  The messagesare appended to the named file, thus allowing one to keep severalmessages in the file, stored in the order they were put there.The filename in quotes, followed by the linecount and character count is echoed on the user's terminal.An example of the.b savecommand relative to our running example is:.(ls 1 2 tuitionmail.)l.b Savedmessages are not automatically saved in.i mboxat quit time, nor are they selected by the.b nextcommand described above, unless explicitly specified.\fBSave\fP can be abbreviated to \fBs\fP..ip "\fBset\fP\ \ "Set an option or give an option a value.  Used to customize.i Mail .Section 5.3 contains a list of the options.  Options can be.i binary ,in which case they are.i onor.i off ,or.i valued .To set a binary option.i option.i on ,do.(lset option.)lTo give the valued option.i optionthe value.i value ,do.(lset option=value.)lThere must be no space before or after the ``='' sign.If no arguments are given, all variable values are printed.Several options can be specified in a single.b setcommand.\fBSet\fP can be abbreviated to \fBse\fP..ip "\fBshell\fP\ \ "The.b shellcommand allows you toescape to the shell..b Shellinvokes an interactive shell and allows you to type commands to it.When you leave the shell, you will return to.i Mail .The shell used is a default assumed by.i Mail ;you can override this default by setting the valued option.q SHELL,eg:.(lset SHELL=/bin/csh.)l\fBShell\fP can be abbreviated to \fBsh\fP..ip "\fBsize\fP\ \ "Takes a message list and prints out the size in characters of eachmessage..ip "\fBsource\fP\ \ "The.b sourcecommand reads.i mailcommands from a file.  It is useful when you are trying to fix your.q .mailrcfile and you need to re-read it.\fBSource\fP can be abbreviated to \fBso\fP..ip "\fBtop\fP\ \ "The.b topcommand takes a message list and prints the first five linesof each addressed message.If you wish, you can change the number of lines that.b topprints out by setting the valued option.q "toplines."On a CRT terminal,.(lset toplines=10.)lmight be preferred.\fBTop\fP can be abbreviated to \fBto\fP..ip "\fBtype\fP\ \ "Same as \fBprint\fP.Takes a message list and types out each message on the terminal.The \fBtype\fP command can be abbreviated to \fBt\fP..ip "\fBundelete\fP \ \"Takes a message list and marks each message as \fInot\fPbeing deleted.\fBUndelete\fP can be abbreviated to \fBu\fP..ip "\fBunread\fP\ \ "Takes a message list and marks each message as.i nothaving been read.\fBUnread\fP can be abbreviated to \fBU\fP..ip "\fBunset\fP\ \ "Takes a list of option names and discards their remembered values;the inverse of \fBset\fP ..ip "\fBvisual\fP\ \ "It is often useful to be able to invoke one of two editors,based on the type of terminal one is using.  To invokea display oriented editor, you can use the.b visualcommand.  The operation of the.b visualcommand is otherwise identical to that of the.b editcommand..ne 2v+\n(psu.sp \n(psuBoth the.b editand.b visualcommands assume some default text editors.  These default editorscan be overridden by the valued options.q EDITORand.q VISUALfor the standard and screen editors.  You might want to do:.(lset EDITOR=/usr/ucb/ex VISUAL=/usr/ucb/vi.)l\fBVisual\fP can be abbreviated to \fBv\fP..ip "\fBwrite\fP\ \ "The.b savecommand always writes the entire message, including the headers,into the file.  If you want to write just the message itself, youcan use the.b writecommand.  The.b writecommand has the same syntax as the.b savecommand, and can be abbreviated to simply.b w .Thus, we could write the second message by doing:.(lw 2 file.c.)lAs suggested by this example, the.b writecommand is useful for such tasks as sending and receivingsource program text over the message system.The filename in quotes, followed by the linecount and character count is echoed on the user's terminal..ip "\fBz\fP\ \ ".i Mailpresents message headers in windowfuls as described underthe.b headerscommand.You can move.i Mail'sattention forward to the next window by giving the.(lz+.)lcommand.  Analogously, you can move to the previous window with:.(lz\-.)l.sh 2 "Custom options".ppThroughout this manual, we have seen examples of binary and valued options.This section describes each of the options in alphabetical order, includingsome that you have not seen yet.To avoid confusion, please note that the options are eitherall lower case letters or all upper case letters.  When I start a sentencesuch as:.q "Ask"causes.i Mailto prompt you for a subject header,I am only capitalizing.q askas a courtesy to English..ip "\fBEDITOR\fP\ \ "The valued option.q EDITORdefines the pathname of the text editor to be used in the.b editcommand and ~e.  If not defined, a standard editor is used..ip "\fBPAGER\fP\ \ "Pathname of the program to use for paginating output whenit exceeds \fIcrt\fP lines.A default paginator is used if this option is not defined..ip "\fBSHELL\fP\ \ "The valued option.q SHELLgives the path name of your shell.  This shell is used for the.b !command and ~! escape.  In addition, this shell expandsfile names with shell metacharacters like * and ? in them..ip "\fBVISUAL\fP\ \ "The valued option.q VISUALdefines the pathname of the screen editor to be used in the.b visualcommandand ~v escape.  A standard screen editor is used if you do not define one..ip "\fBappend\fP\ \ "The.q appendoption is binary andcauses messages saved in.i mboxto be appended to the end rather than prepended.Normally, \fIMail\fP will put messages in \fImbox\fPin the same order that the system puts messages in your system mailbox.By setting.q append,you are requesting that.i mboxbe appended to regardless.  It is in any event quicker to append..ip "\fBask\fP\ \ ".q "Ask"is a binary option whichcauses.i Mailto prompt you for the subject of each message you send.If you respond with simply a newline, no subject field will be sent..ip "\fBaskcc\fP\ \ ".q Askccis a binary option whichcauses you to be prompted for additional carbon copy recipients at theend of each message.  Responding with a newline shows yoursatisfaction with the current list..ip "\fBautoprint\fP\ \ ".q Autoprintis a binary option whichcauses the.b deletecommand to behave like.b dp\*- thus, after deleting a message, the next one will be typedautomatically.  This is useful when quickly scanning and deletingmessages in your mailbox..ip "\fBcrt\fP \ \ "The valued option.I crtis used as a threshold to determine how long a message mustbe before.b PAGERis used to read it..ip "\fBdebug\fP \ \ "The binary option.q debugcauses debugging information to be displayed. Use of thisoption is the same as using the \fB\-d\fP command line flag..ip "\fBdot\fP\ \ ".q Dotis a binary option which, if set, causes.i Mailto interpret a period alone on a line as the terminatorof the message you are sending..ip "\fBescape\fP\ \ "To allow you to change the escape character used when sendingmail, you can set the valued option.q escape.Only the first character of the.q escapeoption is used, and it must be doubled if it is to appear asthe first character of a line of your message.  If you change your escapecharacter, then ~ loses all its special meaning, and need no longer be doubledat the beginning of a line..ip "\fBfolder\fP\ \ "The name of the directory to use for storing folders of messages.If this name begins with a `/'.i Mailconsiders it to be an absolute pathname; otherwise, the folder directoryis found relative to your home directory..ip "\fBhold\fP\ \ "The binary option.q holdcauses messages that have been read but not manually dealt withto be held in the system mailbox. This prevents such messages frombeing automatically swept into your \fImbox\fP file..ip "\fBignore\fP\ \ "The binary option.q ignorecauses \s-2RUBOUT\s0 characters from your terminal to be ignored and echoedas @'s while you are sending mail.  \s-2RUBOUT\s0 characters retain theiroriginal meaning in.i Mailcommand mode.Setting the.q ignoreoption is equivalent to supplying the.b \-iflag on the command line as described in section 6..ip "\fBignoreeof\fP\ \ "An option related to.q dotis.q ignoreeofwhich makes.i Mailrefuse to accept a control\-d as the end of a message..q Ignoreeofalso applies to.i Mailcommand mode..ip "\fBkeep\fP\ \ "The.q keepoption causes.i Mailto truncate your system mailbox instead of deleting it when itis empty.  This is useful if you elect to protect your mailbox, whichyou would do with the shell command:.(lchmod 600 /usr/spool/mail/yourname.)lwhere.i yournameis your login name.  If you do not do this, anyone can probably readyour mail, although people usually don't..ip "\fBkeepsave\fP\ \ "When you.b savea message,.i Mailusually discards it when you.b quit .To retain all saved messages, set the.q keepsaveoption..ip "\fBmetoo\fP\ \ "When sending mail to an alias,.i Mailmakes sure that if you are included in the alias, that mail will notbe sent to you.  This is useful if a single alias is being used byall members of the group.  If however, you wish to receive a copy ofall the messages you send to the alias, you can set the binary option.q metoo..ip "\fBnoheader\fP\ \ "The binary option.q noheadersuppresses the printing of the version and headers when.i Mailis first invoked. Setting this option is the same as using.b \-Non the command line..ip "\fBnosave\fP\ \ "Normally,when you abort a message with two \s-2RUBOUTs\s0,.i Mailcopies the partial letter to the file.q dead.letterin your home directory.  Setting the binary option.q nosaveprevents this..ip "\fBReplyall\fP\ \ "Reverses the sense of.i replyand.i Replycommands..ip "\fBquiet\fP\ \ "The binary option.q quietsuppresses the printing of the version when.i Mailis first invoked,as well as printing the for example.q "Message 4:"from the.b typecommand..ip "\fBrecord\fP\ \ "If you love to keep records, then thevalued option.q recordcan be set to the name of a file to save your outgoing mail.Each new message you send is appended to the end of the file..ip "\fBscreen\fP\ \ "When.i Mailinitially prints the message headers, it determines the number toprint by looking at the speed of your terminal.  The faster yourterminal, the more it prints.The valued option.q screenoverrides this calculation andspecifies how many message headers you want printed.This number is also used for scrolling with the.b zcommand..ip "\fBsendmail\fP\ \ "To use an alternate mail delivery system, set the.q sendmailoption to the full pathname of the program to use.  Note:  this is notfor everyone!  Most people should use the default delivery system..ip "\fBtoplines\fP\ \ "The valued option.q toplinesdefines the number of lines that the.q topcommand will print out instead of the default five lines..ip "\fBverbose\fP\ \ "The binary option "verbose" causes.i Mailto invoke sendmail with the .b \-vflag, which causes it to go into verbose mode and announce expansionof aliases, etc. Setting the "verbose" option is equivalent toinvoking.i Mailwith the.b \-vflag as described in section 6.

⌨️ 快捷键说明

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