📄 text.tex
字号:
% begin text\banner\section{Acknowledgements}The \MH/ system described herein is based on the original Rand \MH/ system.It has been extensively developed (perhaps too much so) by Marshall Rose andJohn Romine at the University of California, Irvine.Einar Stefferud, Jerry Sweet, and Terry Domae provided numerous suggestionsto improve the UCI version of \MH/.Parts of this document are taken from a Rand tutorial \cite{SPayn85} bySue Payne.\section{Disclaimer}The Regents of the University of California issue the followingdisclaimer concerning the UCI version of MH:\bigquoteAlthough each program has been tested by its contributor,no warranty, express or implied,is made by the contributor or the University of California,as to the accuracy and functioning of the programand related program material,nor shall the fact of distribution constitute any such warranty,and no responsibility is assumed by the contributoror the University of California in connection herewith.\endbigquote\section{Scope}This document assumes that you have no knowledge of \MH/.However, to use \MH/ you should have some familiarity with the \unix/ operating system,particularly with the way commands are given,how files are named,the jargon (e.g. {\it shell}, {\it argument}, {\it home directory},{\it pathname\/}),and how to use a text editor (such as \pgm{ex}, \pgm{vi}, or \pgm{emacs\/}).This tutorial covers only basic material.For additional information about \MH/,consult the {\it User's Manual} \cite{MRose85a}.Other documents of possible interest to you include{\it The UCI BBoards Facility} \cite{MRose84}andthe {\it MH Administrator's Guide} \cite{MRose85b}.\section{How To Use This Tutorial}Different typefaces and symbols are used in this document to denote thekinds of things you (the user) must type on your keyboard.\smallskip{\advance\leftskip by\parindent\item{1.} The names of programs are given in {\it text italics}:\smallskip\hskip 1in \pgm{comp}\smallskip\item{2.} Arguments to programs are given in {\tt typewriter style},delimited by single-quotes:\smallskip\hskip 1in \arg{msgs}\smallskip\item{3.} \unix/ pathnames are given in {\sl slanted roman}:\smallskip\hskip 1in \file{/usr/uci/}\smallskip\item{4.} Text giving a full example is presented in {\tt typewriter style}:\example comp\ -editor\ vi\endexampleThe ``\hbox{\tt\char`\ }'' glyph % (visible space glyph)is used to indicate an explicit space (the kind you make with thespace bar on your keyboard).\smallskip}\section{Introduction}With \MH/ you can send messages to other people on your systemand read messages that other people send to you.Depending on how things have been set up on your system,it may be possible for you to send messages to people on remote systems.You can also reply to messages that you have received,review them,organize them in {\it folders},and delete them.\MH/ differs from other mail programs in that it is composed of manysmall programs instead of just one very large program.Among new users this sometimes causes some confusionalong the lines of ``what program do I run?''With \MH/, you use the shell to invoke one program at a time.This means that when you handle mail,the entire power of the shell is at your disposalin addition to the facilities that \MH/ provides.In the beginning, this may not make much sense or may not seem important.However, we have found that as new users of \MH/ gain experience, they find this style of interface to be very useful.\section{Summary}The most minimal list of \MH/ commands that you can get by with is:\smallskip{\advance\leftskip by\parindent\item{\pgm{inc}} - incorporate mail (get new mail)\item{\pgm{show}} - show the first message\item{\pgm{next}} - show the next message\item{\pgm{prev}} - show the previous message\item{\pgm{comp}} - compose a new message to send\item{\pgm{repl}} - reply to a received message\smallskip}\pgm{Comp} and \pgm{repl} give enough prompting possibly to get you along.However, it is suggested that you take the time to peruse thistutorial before leaping into things.\section{Messages and Folders}A message takes the form of a memorandum,and is composed of two major parts:a {\it header},which contains such information as\eg{To} and \eg{From} addresses, \eg{Subject}, \eg{Date}, etc.;and the {\it body},which is the actual text of the message.Each {\it component} in the header starts with a keyword followed bya colon and additional information.For example, in the message:\example Date: 10 Oct 84 17:41:14 EDT (Wed)\\ To: News@udel-dewey\\ Subject: UCI Software Talk\\ From: UCI Portal (agent: Marshall Rose) <uci@udel-dewey>\\\\ This is the text.\endexamplethere are four header items, and one line of text in the body.Note that a blank line separates the body from the headers.\MH/ stores a message as an ordinary file in a \unix/ directory.This directory is called a {\it folder}.If you choose to keep and organize your messages,you may create as many folders as you wish.There is no limit as to the number of messages in a folder.Typically messages are numbered from~1 up.All of your personal folders,along with some other information that \MH/ needs to know,are kept in a special directory called \file{Mail} under your home directory.Normally, \MH/ manages these files and directories automatically,so you needn't muck around with them directly unless you really want to.You won't have any folders until somebody sends mail to you, as a rule.If you are anxious to try out \MH/, but no one has sent you mail yet,try sending mail to yourself to start out with.\section{Reading New Mail}When you are notified that you have mail (usually when you log in),perhaps with the message\example You have mail.\endexamplethen you know that messages are waiting in your {\it maildrop}.To read these messages, you first have to {\it incorporate} the mailinto your ``in-box'' by typing the command:\example inc\endexampleThis incorporates the new mail from your mail drop to your in-box,which is a folder named (naturally enough) \arg{+inbox}.As \pgm{inc} incorporates your new mail,it generates a {\it scan listing} of the mail:$$\vbox{\tenpoint\tx\halign{\hfil#&#\hfil&& \quad#\hfil\cr\noalign{\noindent Incorporating new mail into inbox...\medskip}2&+& 10/10& WESTINE\%USC-ISIF& RFC 916 Now Available& <<A new Request for Co\cr3&& 10/10& G B Reilly& Gosling EMACS manual& <<Marshall, I am lookin\cr4&& 10/11& WESTINE\%USC-ISIF& Internet Monthly Report&\cr}}$$Each time \pgm{inc} is invoked,any new messages are added to the end of your \eg{+inbox} folder.To read the first message,use the \pgm{show} command:\example show\endexampleThis displays the current message.To read each subsequent message,use the \pgm{next} command:\example next\endexampleIf you want to back up,the command \pgm{prev} shows the previous message.Another way to read your messages is to name them all at once:\example show\ all\endexampleThis command displays them all, one after the other.The \arg{all} argument to \pgm{show} above might also be replacedwith \arg{next} or \arg{prev}, as in\example show\ next\\ show\ prev\endexamplewhich are respectively equivalent to the \pgm{next} and \pgm{prev}commands.If you have had occasion to type \pgm{inc} more than once, thenyou will find that \eg{show\ all} is showing not only the new messages,but also the old messages that you've already seen.Therefore, you might find it better to use\example show\ cur-last\endexampleinstead.This command displays messages from the current message (\arg{cur})to the last message (\arg{last}).Each time \pgm{inc} is invoked, it makes the first new messagethe current message.It should be noted here that the name \arg{all} given in a previousexample is equivalent to the {\it message range} \arg{first-last},where \arg{first} is the name of the first message in \arg{+inbox}.Also, \eg{show} by itself is equivalent to\example show\ cur\endexampleAs mentioned earlier,with the \unix/ shell as your interface to \MH/,it becomes easy to list a message on a line printer or to another file.For example,\example show\ all\ |\ lpr\endexamplelists all the messages in the current folder to the line printer.To summarize, the preceding has introduced these important concepts:{\it folders} (in particular, the \arg{+inbox} folder),{\it messages},{\it message names} (e.g. \arg{prev}, \arg{next}, \arg{cur}, \arg{last}),and {\it message ranges} (e.g. \arg{cur-last}, \arg{all}).More will be said about folders and messages in succeeding sections.\section{Sending Messages}To send a message, you compose a message {\it draft},either by replying to a message that someone sent to you,or by creating a draft from scratch.The \pgm{send} command is used {\bf after} completing the final draftof a message, in the same way that you mail a paper letter only after you are finishedwriting it.This is a common source of confusion among new \MH/ users whomay have had experience with other mail systems.This section discusses how to originate messagesand how to reply to messages that were previously received,along with a word or two about addresses.\subsection{Originating Messages}To create a message draft from scratch,use the \pgm{comp} program.You will be prompted for the header componentsand then the body of the message.If you make a mistake, you may correct it later with a text editor.The draft will be sent only if you give an explicit \pgm{send} command,so you do not have to worry about the draft getting away from youprematurely.To start, you simply type:\example comp\endexample{\bf To:}First, the prompt \arg{To:} appears.Here you type the address of the person to whom you wish the message sent.If this person is on the same computer system as you,then that person's login ID should serve as the address(e.g. \arg{mrose} or \arg{jsweet}).Here we digress briefly to discuss addresses.A full discussion of addresses is beyond the scope of thistutorial, but it should be mentioned that there are otherkinds of addresses besides login IDs.To send messages to people on remote systems, the usual way is to type \arg{login-id@host} in the \arg{To:} component,as in \arg{MRose@UCI-ICSA}.Examples of \arg{host} names at UCI include\arg{uci-icsa},\arg{uci-icse},and \arg{uci-cip1}.Upper and lower case letters may be used interchangeably.Sometimes a person's last name (e.g. \arg{Rose}, \arg{Sweet}) can be usedinstead of a login ID,but this cannot be relied upon in a world without unique surnames.{\bf cc:}After you have given an address to the \arg{To:} prompt, you are prompted for the \arg{cc:}(``carbon copy''--an archaism)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -