text.tex

来自「早期freebsd实现」· TEX 代码 · 共 724 行 · 第 1/3 页

TEX
724 行
字号
(after {\it push\/}ing one draft,another draft may be composed and edited immediately).The \switch{unique} switch,which is the default when \pgm{send} is \pgm{push\/}'d,is not really useful if you're using {\it draft folders},as the user generally gets a new message draft for each composition.Hence, users of the {\it draft folder} mechanism should put\example send: -nounique\endexamplein their \profile/ file.This has the added advantage of making\example comp -use\endexampleeasy to use when a draft fails to be posted properly.\parBy using \pgm{push}, the user can free the shell to do other things,because it appears to the shell that the \MH/ command has finished.As a result the shell will immediately prompt for another command,despite the fact that the command is really still running.Note that if the user indicates that annotations are to be performed(with \switch{annotate}),the annotations will be performed after the message has beensuccessfully sent.This action will appear to occur asynchronously.Obviously, if one of the messages that is to be annotated isremoved before the draft has been successfully sent,then when \MH/ tries to make the annotations,it won't be able to do so,and an error message will mysteriously appear on the user's terminal.\subsection{Options at\/{ }\whatnow/ Level}When using the \pgm{comp}, \pgm{dist}, \pgm{forw}, and \pgm{repl} commands at\whatnow/ level,the \pgm{edit}, \pgm{list}, \pgm{headers},and (for the \pgm{dist} and \pgm{repl} commands) the \pgm{display} optionswill pass on any additional arguments given them to whatever program theyinvoke.\parIn addition,in \mh1 (the original Rand \MH/)and \mh2 (the first UCI version of \MH/),\MH/ used a complicated heuristic to determine if the draft should be deletedor preserved after an unsuccessful edit.In \mh3,\MH/ was changed to always preserve the draft,since \pgm{comp}, et. al.,could usually look at a draft, apply another set of heuristics,and decide if it was important or not.With the notion of a {\it draft folder}, in which one by default gets a \arg{new} message draft,\mh4 has again re-implemented the edit deletion/preservationalgorithm (with a minor bug-fix),to keep the draft folder from being cluttered with aborted edits.\parAlso,note that by default,if the draft cannot be successfully sent,these commands return to \whatnow/ level.But, when \pgm{push} is used, this does not happen (obviously).Hence,if these commands were expected to annotate any messages,this will have to be done by hand, later on, with the \pgm{anno} command.\parFinally, if the \switch{delete} switch is given to the \pgm{quit} option,then these commands will inform the user of the name of the unsent draft file.\subsection{Posting of Mail}\mh4 does a few different things when mail is posted.\subsubsection{Signature}There's now a \entry{Signature} entry in the \profile/ file.If the \file{\$SIGNATURE} envariable is not set,then \pgm{send} will consult this profile entry to determine thepersonal name of the \MH/ user.This personal name is placed in the \eg{From:} field of the message.If this profile entry doesn't exist,then \pgm{send} will consult the file \file{\$HOME/.signature}.\subsubsection{Blind Carbon Copies}The \pgm{post} command now handles blind carbon copies in an entirelydifferent fashion from the way they were handled in \mh3.In particular,the message sent to ``blind'' recipients contains minimal information in itsheaders,namely \eg{Date:},\eg{Message-ID:} (if \switch{msgid} was given),\eg{From:},\eg{Subject:} (if given in the message draft),and a standard blind carbon copy disclaimer.The body of the message sent to the blind recipients is simply the actualmessage sent to the ``sighted'' recipients.However,if the \switch{filter~filterfile} switch was given to \pgm{post},then the body of the message is given to \pgm{mhl} to be formatted with thenamed \arg{filterfile}.\subsubsection{Server Interaction}In \mh4, \MH/ supports a mail transport configuration which allows\pgm{post} to talk directly to an SMTP server.A possible extension of this,which looks particularly promising for when \MH/ is used on smallworkstations,is the ability to post mail on a different host,such as a ``mail relay''.In this way,the load on the local host may be reduced,and mail traffic may be handled more efficiently.\section{Folder Handling}Two new facilities have been added to give the \MH/ user greater power inmanipulating folders:{\it relative folder addressing},which allows a user to shorten the typing of long folder names;and the {\it folder-stack},which permits a user to keep a stack of current folders.\subsection{Relative Folder Addressing}By default, when \arg{+folder} is given,and the folder name is not absolute(i.e., does not start with \file{/}, \file{./}, or \file{../}),then the \unix/ pathname of the folder is interpreted relative to the user's\MH/ directory.Although this mechanism works fine for top-level folders and their immediatesub-folders,once the depth of the sub-folder tree grows, it becomes rather unwieldly:\example scan +mh/mh.4/draft/flames\endexampleis a lot of typing.\MH/ can't do anything if the current folder was \eg{+inbox},but if the current folder was, say, \eg{+mh/mh.4/draft},\MH/ has a short-hand notation to reference a sub-folder of thecurrent folder.Using the \arg{@folder} notation,the \MH/ user can direct any \MH/ command which expects a \arg{+folder}argument to look for the folder relative to the current folder instead of theuser's \MH/ directory.Hence, if the current folder was \eg{+mh/mh.4/draft},then\example scan @flames\endexamplewould do the trick handily.In addition, if the current folder was \eg{+mh/mh.4/draft},\example scan @../pick\endexamplewould scan the folder \eg{+mh/mh.4/pick},since, in the \unix/ fashion,it references the folder \eg{pick} which is a sub-folder ofthe folder that is the parent of the current folder.Since most advanced \MH/ users seem to exhibit a large degree of localityin referencing folders when they process mail,this convention should receive a lot of use.\subsection{The Folder Stack}The {\it folder-stack\/} mechanism in \MH/ gives the \MH/ user afacility similar to the {\it CShell\/}'s directory-stack.Simply put,\example folder -push +foo\endexamplemakes \eg{foo} the current folder,saving the folder that was previously the current folder on the{\it folder-stack}.As expected,\example folder -pop\endexampletakes the top of the {\it folder-stack\/} and makes it the current folder.Each of these switches lists the {\it folder-stack\/} when they execute.It is simple to write a {\it pushf\/} command as a shell script.It's one line:\example exec folder -push \$@\endexampleProbably a better way is to link \pgm{folder} to your \file{\$HOME/bin/}directory under the name of \pgm{pushf} and then add the entry\example pushf: -push\endexampleto the \profile/ file.\parThe manual page for \man{folder}(1) discusses the analogy between the\pgm{CShell} directory stack commands and the switches in \pgm{folder}which manipulate the {\it folder-stack}.\section{Other Changes}This last section discusses the other,more program-specific changes made to \MH/.\subsection{Address Parsing}There's a new library program, \pgm{ap}, which parses addresses according tothe rules that the \MH/ programs use.It's often useful for figuring out how \MH/ sees a particular address.The \pgm{rcvtrip} rcvmail hook,described at the end of this report,uses this facility.\subsection{Alternate Mailboxes}There's a new entry in the profile, \entry{Alternate-Mailboxes},which is read by \pgm{repl} and \pgm{scan} to determine which addresses in amessages are under the user's administration.Hence,\example    Alternate-Mailboxes: mh@uci-750a, bug-mh\endexamplesays that the mailbox \eg{mh@uci-750a}and any mailbox whose local part is \eg{bug-mh}is read by the user.Hence, \pgm{repl} will not include them in the reply list,and \pgm{scan} will act accordingly if it encounters a message which is fromany of these addresses.A current restriction is that the hostnames given must be the ``official''hostnames for the mailboxes,as local nicknames for hosts are not replaced with their official site names.\subsection{Annotation}The \pgm{anno} command no longer prompts for a \eg{text} componentif the \switch{text~body} switch isn't given.\subsection{More on Folder Handling}If \pgm{folders} (or \pgm{folder} when invoked with the \switch{all} switch)is given a \arg{+folder} or \arg{msg} argument,then it will set the current folder and/or message(in previous versions of \MH/,\pgm{folders} ignored any \arg{+folder} or \arg{msg} arguments).In addition,the top-level folders of the current folder will be listed(if \switch{norecurse} is in effect),or the current folder will be listed recursively(if \switch{recurse} was given).\subsection{Scanning}The \pgm{scan} and \pgm{inc} commands now have a \switch{size} switch(and a complementary switch, \switch{nosize}),which indicate if the {\it scan listing\/} should include the size of themessage in bytes.\parFurthermore,the fields in the {\it scan listing\/} have been compressed a bit to allowmore of the \eg{Subject} and \eg{Body} portions of the listing to appear.\parFinally,if \pgm{scan} encounters a message without a date field,rather than leaving that portion of the {\it scan listing} blank,as had been done in previous versions of \MH/,the date is filled-in with the last write date of the message,and post-fixed with a `*'.This is particularly handy for scanning a {\it draft folder},as message drafts usually aren't allowed to have dates in them.\subsection{BBoards Support}The \pgm{bbr} command now uses the name it was invoked with as its promptingstring.To override this,the \MH/ user can specify the \switch{prompt~string} switch to \pgm{bbr}.\parThe \pgm{bbc} command now lists the \eg{last update time} of a {\it BBoard},instead of the \eg{local leaders} when \switch{topics} is used without\switch{verbose}.The \eg{local leaders} are now listed when \switch{verbose} is given with\switch{topics}.\subsection{RcvMail Support}The \pgm{rcvcron} and \pgm{rcvtty} are now standard in all \mh4configurations.Further, there's a shell script, \pgm{rcvtrip},that demonstrates the power (and utility) of a {\it hook\/} operating in the\MH/ environment.

⌨️ 快捷键说明

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