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

📄 mh.rf

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 RF
📖 第 1 页 / 共 5 页
字号:
\fIshow\fR,\fInext\fR,\fIprev\fR,\fIrmm\fR,\fIcomp\fR,and\fIrepl\fR.These are described below.\fIinc\fR.ppWhen you get the message \*(lqYou have mail\*(rq, type the command \fIinc\fR.You will get a \*(lqscan listing\*(rq such as:.nf.in +.5i.ta \w'7+  'u +\w'11/26  'u +\w'To:norm  'u7+	\07/13	Cas	revival of measurement work8	10/\09	Norm	NBS people and publications9	11/26	To:norm	question \*(<<Are there any functions.re.in -.5i.fi.ppThis shows the messages you received since the last time youexecuted this command (\fIinc\fR adds these new messages to your inbox folder).You can see this list again, plus a list of anyother messages you have, by using the\fIscan\fR command.\fIscan\fR.ppThe scan listing shows the message number, followed by thedate and the sender.(If you are the sender, the addressee in the \*(lqTo:\*(rqcomponent is displayed.You may send yourself a message by includingyour name among the \*(lqTo:\*(rq or \*(lqcc:\*(rq addressees.)It also shows the message's subject; ifthe subject is short, the first part of the body of the message isincluded after the characters \*(<<..ne 5\fIshow\fR.ppThis command shows the current message, that is,the first one of the new messages after an\fIinc\fR.If the message is notspecified by name (number), it isgenerally the last message referred to by an \fIMH\fR command.For example,.ta \w'\fIshow\fR\0|\0\fIlpr\fR  'u.ti .5i^\fIshow\fP\05~^will show message 5..re.ppYou can use the show command to copy a message or print amessage..(b L.in .5i.ta \w'\fIshow\fR\0|\0\fIlpr\fR  'u^\fIshow\fR\0>\0\fIx\fR~^will copy the message to file x..br^\fIshow\fR\0|\0\fIlpr\fR~^will print the message, using the \fIlpr\fR command..br^\fInext\fR~^will show the message that follows the current message..br^\fIprev\fR~^will show the message previous to the current message..br^\fIrmm\fR~^will remove the current message..br^\fIrmm\03\fR~^will remove message 3..)b.ne 5\fIcomp\fR.ppThe\fIcomp\fR command puts you in the editor to write or edit a message.Fill in ordelete the \*(lqTo:\*(rq, \*(lqcc:\*(rq, and \*(lqSubject:\*(rq fields,as appropriate, and type the body of the message.Thenexit normally from the editor.You will be asked\*(lqWhat now?\*(rq.Type a carriage return to see the options.Typing \fBsend\fRwill cause the message to be sent; typing \fBquit\fR will cause an exitfrom\fIcomp\fR,with the message draft saved..ppIf you quit without sending the message, it will be saved in a filecalled <name>/Mail/draft (where <name> is your \fB$HOME\fR directory).You can resume editing the message later with \*(lqcomp\0\-use\*(rq;or you can send the message later, using the \fIsend\fR command..ne 4\fIcomp\0\-editor\0prompter\fR.ppThis command uses a different editor and is useful for preparing\*(lqquick and dirty\*(rq messages.It prompts you for each component of theheader.Type the information for that component, or type a carriagereturn to omit the component.After that, type the body of themessage.Backspacing is the only form of editing allowed with this editor.When the body is complete, type a carriage return followed by <EOT>(usually <CTRL-D>).This completes the initial preparation of the message; from then on, usethe same procedures as with\fIcomp\fR (above)..ne 5\fIrepl\fR.br\fIrepl\fR\0n .ppThis command makes up an initial message form with a headerthat is appropriate forreplying to an existing message.The message being answered is thecurrent message if no message number is mentioned, or n if a numberis specified.After the header is completed, you can finish the message as in\fIcomp\fR (above)..ppThis is enough information to get you going using \fIMH\fR.There are more commands,and the commands described here have more features.Subsequent sectionsexplain \fIMH\fR in complete detail.The system is quite powerful if youwant to use its sophisticated features, but the foregoing commandssuffice for sending and receiving messages..ppThere are numerous additional capabilities you may wish to explore.For example, the\fIpick\fR command will select a subset of messagesbased on specified criteria such as sender and/or subject.Groups ofmessages may be designated, as described in Sec. IV,under \fBMessage Naming\fR.The file \fI\&.mh\(ruprofile\fR can be used to tailor your use ofthe message system to your needs and preferences, as described in Sec. IV,under \fBThe User Profile\fR.In general, you maylearn additional features of the system selectively, according to yourrequirements,by studying the relevant sections of this manual.There is no need tolearn all the details of the system at once..+c "DETAILED DESCRIPTION".ppThis section describes the \fIMH\fR system in detail, including the componentsof the user profile, the conventions for message naming, and some ofthe other \fIMH\fR conventions.Readers who aregenerally familiar with computer systems will be able to followthe principal ideas, although some details may be meaningful only tothose familiar with UNIX..uh "THE USER PROFILE".ppThe first time an \fIMH\fR command is issued by a new user, the systemprompts for a \*(lqPath\*(rq and creates an \fIMH\fR \*(lqprofile\*(rq..ppEach \fIMH\fR user has a profile which contains tailoringinformation for each individual program.Other profile entries control the \fIMH\fR path (where folders andspecial files are kept), folder and message protections, editorselection, and default arguments for each \fIMH\fR program.Each user of \fIMH\fR also has a context file which containscurrent state information for the \fIMH\fR package(the location of the context file is kept in the user's \fIMH\fR directory,or may be named in the user profile).When a folder becomesthe current folder, it is recorded in the user's context.(Other state information is kept in the context file,see the manual entry for \fImh\-profile\0\fR(5) for more details.)In general,the term \*(lqprofile entry\*(rq refer to entries in either the profile orcontext file.Users of \fIMH\fR needn't worry about the distinction,\fIMH\fR handles these things automatically..ppThe \fIMH\fR profile is stored in the file \fI\&.mh\(ruprofile\fR in theuser's \fB$HOME\fR directory\**..(f\** By defining the envariable \fB$MH\fR,you can specify an alternate profile to be used by \fIMH\fR commands..)fIt has the format of a message withoutany body.That is, each profile entry is on one line, with akeyword followed by a colon (:) followed by text particular tothe keyword..br\(rh\ \ \&\fIThis file must not have blank lines.\fR.brThe keywordsmay have any combination of upper and lower case.(See the information of \fImh\-mail\fR later on in this manualfor a description of message formats.).ppFor the average \fIMH\fR user, the only profile entry ofimportance is \*(lqPath\*(rq.Path specifies a directory in which \fIMH\fRfolders and certain files such as \*(lqdraft\*(rq are found.Theargument to this keyword must be a legal UNIX path that names anexisting directory.If this path is not absolute(i.e., does not begin with a \fB/\fR\0),it will be presumed to start from the user's \fB$HOME\fR directory.All folder and message references within\fIMH\fR will relate to this path unless full path names are used..ppMessage protection defaults to 644, and folder protection to711.These may be changed by profile entries \*(lqMsg-Protect\*(rqand \*(lqFolder-Protect\*(rq, respectively.The argument to thesekeywords is an octal number which is used as the UNIX file mode\**..(f\** See \fIchmod\fR\0(1) in the \fIUNIX Programmer's Manual\fR\0[5]..)f.ppWhen an \fIMH\fR program starts running, it looks through theuser's profile for an entry with a keyword matching the program'sname.For example, when\fIcomp\fR is run, it looks for a \*(lqcomp\*(rqprofile entry.If one is found, the text of the profile entry isused as the default switch setting until all defaults are overriddenby explicit switches passed to the program as arguments.Thus the profileentry \*(lqcomp:\0\-form\0standard.list\*(rq would direct\fIcomp\fR to use thefile \*(lqstandard.list\*(rq as the message skeleton.If an explicitform switch is given to the\fIcomp\fR command, it will override theswitch obtained from the profile..ppIn UNIX, a program may exist under several names,either by linking or aliasing.The actual invocation name is used by an \fIMH\fRprogram when scanning for its profile defaults\**..(f\** Unfortunately,the shell does not preserve aliasing information when calling a program,hence if a program is invoked by an alias different than its name,the program will examine the profile entry for it's name,not the alias that the user invoked it as.The correct solution is to create a (soft) link in your \fI$HOME/bin\fRdirectory to the \fIMH\fR program of your choice.By giving this link a different name,you can use an alternate set of defaults for the command..)fThus, each \fIMH\fR programmay have several names by which it can be invoked, and each namemay have a different set of default switches.For example, if\fIcomp\fR is invoked by the name\fIicomp\fR,the profile entry\*(lqicomp\*(rq will control the default switches for this invocation ofthe\fIcomp\fR program.This provides a powerfuldefinitional facility for commonly used switch settings..ppThe default editorfor editing within\fIcomp\fR,\fIrepl\fR,\fIforw\fR,and\fIdist\fR,is usually \fIprompter\fR,but might be something else at your site,such as \fI/usr/ucb/ex\fR or \fI/bin/e\fR.A different editor may be used by specifyingthe profile entry\*(lqEditor: \*(rq.The argument to \*(lqEditor\*(rq is the name of anexecutable program or shell command file which can be found viathe user's $PATH defined search path, excluding the currentdirectory.The \*(lqEditor:\*(rq profile specificationmay in turn be overridden by a `\-editor\0<editor>'profile switch associated with\fIcomp\fR,\fIrepl\fR,\fIforw\fR,or\fIdist\fR.Finally, an explicit editor switch specified with anyof these four commands will have ultimate precedence..ppDuring message composition, more than one editor may beused.For example, one editor (such as \fIprompter\fR\0)may be usedinitially, and a second editor may be invoked later to revisethe message being composed(see the discussion of\fIcomp\fR in Section 5 for details).A profile entry \*(lq<lasteditor>\-next:\0<editor>\*(rq specifies the name ofthe editor to be used after a particular editor.Thus \*(lqcomp:\0\-e\0prompter\*(rqcauses the initial text to be collected by\fIprompter\fR,and the profile entry \*(lqprompter\-next:\0ed\*(rq names ed as theeditor to be invoked for the next round of editing..ppSome of the \fIMH\fR commands, such as\fIshow\fR,can be used onmessage folders owned by others, if those folders are readable.However,you cannot write in someone else's folder.All the \fIMH\fR commandactions not requiring write permission may be used witha \*(lqread-only\*(rq folder..ppTable 1 lists examples of some of the currently defined profileentries, typical arguments, and the programs that reference theentries..bp.in .9i.ll -.9i.ta \w'<program>:\0default switches  'u.sp 30p.ceTable 1.sp 8p.ceP\s-2ROFILE\s0 C\s-2OMPONENTS\s0.hl             \" ~12p preceding + 1v (12p) after.nf^^\fIMH\fR Programs that^Keyword and Argument~^\ use Component\h'|\n(.lu-.9i'\v'4p'\l'|0'\v'-4p'  \" \l'..' does underlining.sp^Path:\0Mail~^All^Current-Folder:\0inbox~^Most^Editor:\0/usr/ucb/ex~^\fIcomp, dist, forw, repl\fR^Msg\-Protect:\0644~^\fIinc\fR^Folder\-Protect:\0711~^\fIinc, pick, refile\fR^<program>:\0default switches~^All^prompter\-next:\0ed~^\fIcomp, dist, forw, repl\fR.hl.ll +.9i.in 0.fi.ppPath.u shouldbe present.Current\-Folder is maintainedautomatically by many \fIMH\fR commands (see the \fBContext\fR sections ofthe individual commands in Sec. IV).All other entries are optional,defaulting to the values described above..uh "MESSAGE NAMING".ppMessages may be referred to explicitly or implicitly whenusing \fIMH\fR commands.A formal syntax of message names is given in Appendix B, but thefollowing description should be sufficient for most \fIMH\fR users.Some details of message naming that apply only to certaincommands are included in the description of thosecommands..ppMost of the \fIMH\fR commands accept arguments specifying one ormore folders, and one or more messages to operate on.The use ofthe word \*(lqmsg\*(rq as an argument to a command means that exactly onemessage name may be specified.A message name may be a number,such as 1, 33, or 234, or it may beone of the \*(lqreserved\*(rq message names:first, last, prev, next, and cur.(As a shorthand, aperiod (\&.) is equivalent to cur.)The meanings of these names are straightforward:\*(lqfirst\*(rq is the first message in the folder;\*(lqlast\*(rq is the last message in the folder;\*(lqprev\*(rq is the message numerically previous to the current message;\*(lqnext\*(rq is the message numerically following the current message;\*(lqcur\*(rq (or \*(lq\&.\*(rq) is the current message in the folder.In addition,\fIMH\fR supports user\-defined\-sequences;see the description of the \fImark\fR command for more information..ppThe default in commands that take a \*(lqmsg\*(rq argument isalways \*(lqcur\*(rq..ppThe word \*(lqmsgs\*(rq indicates that several messages may bespecified.Such a specification consists of several message

⌨️ 快捷键说明

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