📄 beginners.tex
字号:
\documentstyle [12pt]{article}\parindent=0pt\parskip=7pt plus 2pt%$Id: beginners.tex,v 1.2 1992/02/13 18:34:49 jromine Exp $\def\oneline#1{\par\bigskip\leftline{\tt\hskip.75in#1}}\def\command#1{\par\bigskip\leftline{\tt\hskip.75in\% #1}}\def\comarg#1#2{\par\bigskip\leftline{\tt\hskip.75in\% #1 {\it#2}}}\def\MH/{{\sf MH}}\def\MM/{{\sc mm}}\def\unix/{{\sc Unix}}\newfont{\itt}{cmti10}\begin{document}\title{MH for Beginners}\author{Mary Hegardt \and Tim Morgan}\maketitleThis document is intended to be an introduction for new users to the\MH/ mail system. For more detailed information, users will want toread the document called {\sl The Rand MH Message Handling System:User's Manual\/} by Marshall~T. Rose and John~L. Romine. It is availablefor Xeroxing in suite CS408.\footnote{This document is specific to the environmentat the ICS department of U.~C.~Irvine. For a more general document,see {\sl The Rand MH Message Handling System: Tutorial\/}.}\section{Using Electronic Mail}Electronic mail (e-mail) is a quick, convenient way to send a messageto another person (or persons). The message recipient can read andreply to the message at his convenience. E-mail is much faster thana paper memo and avoids inconveniences associated with the telephonesuch as unwanted interruptions and ``phone tag.''At UCI, one can send e-mail to people within the ICS department, peoplein other units on campus, and to people at some other institutionsoff campus (usually other universities).An electronic mail message consists of two parts: the headers and thebody. The body comes after the headers and consists of the ``message'':whatever the sender types in. The headers are the lines at the topof the message including the subject and addresses of the peopleto whom the message is addressed. It is similar to the top linesof a memo: {\tt To:}, {\tt From:}, {\tt Subject:}, and so on. The headersare separated from the body by a blank line. As in memos, the peoplelisted in the {\tt Cc:}\ field are not intended to be the primary recipients of the message. The message is for their information only, and theyare not expected to reply.E-mail is also useful for discussions among groups of people. This``bboards'' (electronic bulletin boards) facility will be discussed later.An electronic mail address looks like ``{\it name\/}{\tt@}{\it site\/}''.The {\it name\/} isa person's ``mail handle'' --- usually his first initial followed by hislast name. For example, Mary Hegardt's mail handle is ``mhegardt''.The {\it site\/} is the system where the addressee receives mail. Withinthe ICS Department, you need only know the person's mail handle;the mail system will automatically fill in the ``{\tt @}{\it site\/}'' part.\section{Why MH ?}The \MH/ system is very different from most mail user agents. Instead of running one large program which handles all mail functions and keepsmessages in one large file, \MH/ is a collection of smaller single-purpose programs used to manipulate mail messageswhich are kept in individual files. \MH/ may seem to be more complicatedor harder to use than other mail systems (MM, for example), but \MH/ has been designed to allowyou to take full advantage of existing {\sc Unix}\footnote{{\sc Unix} is a trademark of AT\&T Bell Laboratories} commands and programsin connection with mail messages.For example, you can use your usual text editor, spelling program, andprinter commands on individual messages. \section{The Basics}The first time you use an \MH/ command (probably {\it inc\/}), \MH/ will create a directory called ``Mail'' in your home (login) directory. Allyour mail will be stored in directories beneath this one. It will alsocreate a file in your home directory called \verb|.mh_profile|. It isa file that allows you to tailor your \MH/ environment. We'll discussthis more later. \subsection{Reading Mail}When someone sends a mail message to you, it is delivered to a filecalled your ``mail drop'' file. When you are ready to read your mail,you have to incorporate (or ``inc'') your mail messages from the maildrop area into your account.Everytime you log in to your {\sc Unix} account, you will be told if youhave new mail messages. When you are ready to read them, type \verb|inc|.The {\it inc\/} program will copy your mail into your ``inbox'' and generatea ``scan'' listing of the new messages. For example,\begin{scriptsize}\begin{verbatim}4.2 BSD UNIX #116: Mon Jul 15 14:03:21 PDT 1985You have new ZOTnet mail, type "inc" (or mail)TERM = (dm1520)% incIncorporating new mail into inbox ... 1+ 10/29 1732-PST Tim Morgan new bboard! <<Please add us to the uni 2 11/12 0016-PST ROODE@uci-20b CP6 from the 20s <<What is (will be) t 4 11/15 1909-EDT tts@tts Hello, got a few questions 5 11/15 2134-PST Marshall Rose MH.6 on 750a <<Mary, I've left the dis 6 11/16 0808-PST Mail Delivery Su Returned mail: Host unknown 7 11/16 1021-PST Tim Morgan Unix-wizards/info-unix move 8 11/18 0952-PST freeman@icsd.UCI Re:New system wide aliases for ICS facu 9 11/18 1346-EDT tts@tts Have we got a problem?\end{verbatim}\end{scriptsize}This is what a typical ``inc'' session for the Postmaster looks like. {\it Inc\/} copies my mail into my ``inbox'' folder, assigns a unique number toeach message, and scans them for me. The numbers allow you to referto each message individually. After the message number, you see thedate and time the message was sent, the name of the sender, and thesubject of the message. The ``current'' message is indicated by a ``{\tt +}'' sign. To read it, type ``{\tt show}'':\begin{scriptsize}\begin{verbatim}% show (Message inbox:1) Received: from localhost by UCI.EDU id a005369; 29 Oct 85 17:32 PST To: postmaster@UCI.EDU Subject: new bboard! Date: 29 Oct 85 17:32:24 PST (Tue) From: Tim Morgan <morgan@UCI.EDU> Please add us to the unix-sw list. Also, if RAJ hasn't mentioned it, and if it still exists, we should get on the Astronomy bboard. Tim\end{verbatim}\end{scriptsize}If the message islonger than one screenful, you will see the word ``more'' at the bottomof the screen. When you are ready to see ``more'' of the message,press the \fbox{space bar} to see another screenful, or press the \fbox{return} key to see just one more line.To see the next message, you could type a couple of different commands:\oneline{\% next}or\oneline{\% show next}or\oneline{\% show 2}All of these commands would have the same effect: to type out the next messagein the list. The most efficient thing to do is to type ``{\tt next}''. WhenYou do that, message number 2 will be shown and become the ``current message''.\begin{footnotesize}\begin{verbatim}% next(Message inbox:2)Received: from UCI-20B by UCI-ICSA id aa01222; 12 Nov 85 0:23 PSTDate: 12 Nov 1985 0016-PSTFrom: ROODE@uci-20bSubject: CP6 from the 20sTo: zotnet@uci-20bcc: dana_roode%ucicp6@UCI.EDUWhat is (will be) the prescribed method of addressing for sendingCP6 mail from the 20s? They dont seem to know about @CF, @UCICP6,but "Name_Name%UCICP6"@ICSA seems to fly. dana\end{verbatim}\end{footnotesize}\subsection{Selecting Messages}As you have seen, messages can be referred to by their message numbers.Some \MH/ commands, such as {\it show,} can act upon more than onemessage at a time. A range of messages can be specified using theform ``{\it name1-name2\/}'' where {\it name\/} is a message number orone of the reserved message names described below:\bigskip\def\titem[#1]{\par\noindent\hbox to .5in{\hfil\it #1\/}\qquad}\titem[cur] The current message (the last one that was handled)\titem[next] The next message (same as ${\it cur\/} + 1$)\titem[prev] The previous message (${\it cur\/} - 1$)\titem[first] The first message in the current folder\titem[last] The last message in the folder\titem[all] All messages ($\it first-last$)\bigskipIf you do not name a specific message, the command will act uponthe ``current message''.\subsection{Sending Messages}A mail message consists of two parts: the headers and the body. Theheaders are the lines at the top of the message that say ``{\tt To:}''and so on. The body is the actual text of the message (what youwant to say). To send someone a message, you start with the{\it comp\/} command. This will start up an editor called {\it prompter\/}that will prompt you to fill in the headers. You should type therequested information for that header or a \fbox{return} to omit it. You should end the message by typing control-D (press down the keymarked \fbox{ctrl} and strike the D key) at the beginning of a newline. Here's an example:\begin{verbatim} % comp To: morgan, raj Cc: Subject: Lunch --------- Where are we going for lunch today ? Mary <control-D> -------- What now ? send\end{verbatim}At the ``\verb|What now ?|'' prompt you can type a {\tt?} to see what commands you can type next.One of the most useful options at this point is to edit the draftof the message to correct any mistakes. To do this you type:\oneline{What now ? edit vi}This will put you in the {\it vi\/} editor to edit the message. If you use{\it emacs\/} or any other editor, just type ``edit emacs'' or whatever.When you have finished editing, just exit the editor as you would normally. You will then get another ``\verb|What now ?|'' prompt. Here are someof the ``What now'' options:\bigskip\begingroup\def\titem[#1]{\par\hangafter=1\hangindent=1.4in\noindent \hbox to\hangindent{\hfil#1\qquad}\ignorespaces}\titem[\tt edit \it editor\/] Edit the message using the specified editor. When you exit, you will be back at \verb|What now|.\titem[\tt list] Shows the message you just typed\titem[\tt whom -check] Verifies that the addresses you have used are valid as far as our system can tell\titem[\tt send] Sends the message to the recipients\titem[\tt push] Sends the message in the background\titem[\tt quit] Quits without sending the message. Saves the text of the message as a ``draft''. Type \verb|comp -use| to get back to that draft later.\titem[\tt quit -delete] Quit, throwing away the draft\endgroup\bigskipMake sure you are happy with your message before typing \verb|send|. Thereis no way to recall a message once it has been sent.\subsection{Replying to Messages}To reply to the current message type {\it repl.} When you do this, the reply headers will be printed out and you will be put in the promptereditor to type in your reply text. When you are replying to a message,the name of the sender of the original message will appear in the``To:'' field. Any people on the ``To:'' or ``Cc:'' lists will alsobe copied on your reply message. As with {\it comp,} when you havefinished, type control-D and \verb|send| (or whatever) at \verb|What now ?|.\subsection{Forwarding Messages}If you receive a particularly interesting message and can't resistsharing it with others, you can forward it using the {\it forw\/}command. You will be prompted to fill in the headers (the addressto which the message is to be forwarded, etc.). When you have done this,you will see the text of the message which you are forwarding and will begiven the opportunity to add some enlightening text to the message.Exit with control-D and do whatever feels good at the \verb|What now ?|prompt.\subsection{The Advanced Features}You will probably want to master the beginning \MH/ concepts before you
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -