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

📄 mail2.nr

📁 早期freebsd实现
💻 NR
📖 第 1 页 / 共 2 页
字号:
command can be abbreviated to simply.b d ..ppMany features of.i Mailcan be tailored to your liking with the.b setcommand.  The.b setcommand has two forms, depending on whether you are settinga.i binaryoption or a.i valuedoption.Binary options are either on or off.  For example, the.q askoption informs.i Mailthat each time you send a message, you want it to prompt you fora subject header, to be included in the message.To set the.q askoption, you would type.(lset ask.)l.ppAnother useful.i Mailoption is.q hold.Unless told otherwise,.i Mailmoves the messages from your system mailbox to the file.i mboxin your home directory when you leave.i Mail .If you want.i Mailto keep your letters in the system mailbox instead, you can set the.q holdoption..ppValued options are values which.i Mailuses to adapt to your tastes.  For example, the.q SHELLoption tells.i Mailwhich shell you like to use, and is specified by.(lset SHELL=/bin/csh.)lfor example.  Note that no spaces are allowed in.q "SHELL=/bin/csh."A complete list of the.i Mailoptions appears in section 5..ppAnother important valued option is.q crt.If you use a fast video terminal, you will find that when youprint long messages, they fly by too quickly for you to read them.With the.q crtoption, you can make.i Mailprint any message larger than a given number of lines by sendingit through a paging program. This program is specified by thevalued option \fBPAGER\fP.If \fBPAGER\fP is not set, a default paginator is used.For example, most CRT users with 24-line screens should do:.(lset crt=24.)lto paginate messages that will not fit on their screens.In the default state, \fImore\fP (default paginator) prints a screenful ofinformation, then types --More--.  Type a space to see the next screenful..ppAnother adaptation to user needs that.i Mailprovides is that of.i aliases .An alias is simply a name which stands for one or morereal user names..i Mailsent to an alias is really sent to the list of real usersassociated with it.  For example, an alias can be defined for themembers of a project, so that you can send mail to the whole projectby sending mail to just a single name.  The.b aliascommand in.i Maildefines an alias.  Suppose that the users in a project arenamed Sam, Sally, Steve, and Susan.  To define an alias called.q projectfor them, you would use the.i Mailcommand:.(lalias project sam sally steve susan.)lThe.b aliascommand can also be used to provide a convenient name for someonewhose user name is inconvenient.  For example, if a user named.q "Bob Anderson"had the login name.q anderson,"you might want to use:.(lalias bob anderson.)lso that you could send mail to the shorter name,.q bob..ppWhile the.b aliasand.b setcommands allow you to customize.i Mail ,they have the drawback that they must be retyped each time you enter.i Mail .To make them more convenient to use,.i Mailalways looks for two files when it is invoked.  It first readsa system wide file.q /usr/lib/Mail.rc,then a user specific file,.q .mailrc,which is found in the user's home directory.The system wide fileis maintained by the system administrator andcontains.b setcommands that are applicable to all users of the system.The.q .mailrcfile is usually used by each user to set options the way he likesand define individual aliases.For example, my .mailrc file looks like this:.(lset ask nosave SHELL=/bin/csh.)lAs you can see, it is possible to set many options in thesame.b setcommand.  The.q nosaveoption is described in section 5..ppMail aliasing is implementedat the system-wide levelby the mail deliverysystem.i sendmail .These aliases are stored in the file /usr/lib/aliases and areaccessible to all users of the system.The lines in /usr/lib/aliases are ofthe form:.(lalias: name\*<1\*>, name\*<2\*>, name\*<3\*>.)lwhere.i aliasis the mailing list name and the.i name\*<i\*>are the members of the list.  Long lists can be continued onto the nextline by starting the next line with a space or tab.  Remember that youmust execute the shell command.i newaliasesafter editing /usr/lib/aliases since the delivery systemuses an indexed file created by.i newaliases ..ppWe have seen that.i Mailcan be invoked with command line arguments which are peopleto send the message to, or with no arguments to read mail.Specifying the.rb \-fflag on the command line causes.i Mailto read messages from a file other than your system mailbox.For example, if you have a collection of messages inthe file.q lettersyou can use.i Mailto read them with:.(l% Mail \-f letters.)lYou can use allthe.i Mailcommands described in this document to examine, modify, or deletemessages from your.q lettersfile, which will be rewritten when you leave.i Mailwith the.b quitcommand described below..ppSince mail that you read is saved in the file.i mboxin your home directory by default, you can read.i mboxin your home directory by using simply.(l% Mail \-f.)l.ppNormally, messages that you examine using the.b typecommand are saved in the file.q mboxin your home directory if you leave.i Mailwith the.b quitcommand described below.If you wish to retain a message in your system mailboxyou can use the.b preservecommand to tell.i Mailto leave it there.The.b preservecommand accepts a list of message numbers, just like.b typeand may be abbreviated to.b pre ..ppMessages in your system mailbox that you do not examine arenormally retained in your system mailbox automatically.If you wish to have such a message saved in.i mboxwithout reading it, you may use the.b mboxcommand to have them so saved.  For example,.(lmbox 2.)lin our example would cause the second message (from sam)to be saved in.i mboxwhen the.b quitcommand is executed..b Mboxis also the way to direct messages to your.i mboxfile if you have set the.q holdoption described above..b Mboxcan be abbreviated to.b mb ..ppWhen you have perused all the messages of interest, you can leave.i Mailwith the.b quitcommand, which saves the messages you have typed but notdeleted in the file.i mboxin your login directory.  Deleted messages are discarded irretrievably,and messages left untouched are preserved in your system mailbox sothat you will see them the next time you type:.(l% Mail.)lThe.b quitcommand can be abbreviated to simply.b q ..ppIf you wish for some reason to leave.i Mailquickly without altering either your system mailbox or.i mbox ,you can type the.b xcommand (short for.b exit ),which will immediately return you to the Shell without changing anything..ppIf, instead, you want to execute a Shell command without leaving.i Mail ,youcan type the command preceded by an exclamation point, just as in thetext editor.  Thus, for instance:.(l!date.)lwill print the current date without leaving.i Mail ..ppFinally, the.b helpcommand is available to print out a brief summary of the.i Mailcommands, using only the single character command abbreviations.

⌨️ 快捷键说明

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