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

📄 mh.rf

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 RF
📖 第 1 页 / 共 5 页
字号:
.\"	@(MHWARNING).\" @(#)$Id: MH.rf,v 1.2 90/11/25 18:55:54 sharpe Exp $.po +.75i.de $c                          \" Major Heading printer.ce.b "\\s12\\n+(ch.\\ \\$1\\s0"   \" 12 Point Bold Header.(x\ \ \ \\n(ch.\\ \\ \\$1.)x.sp 45p         \" 45 point space or about 1/2 inch..\".nr xs .15v     \" Put index entries closer together.(xSection.)x _.de $0          \" Sub-Heading macro called AFTER printing the heading.(x.sp .3v.ti .5i\\$1.)x...de $s          \" Macro to print footnote separator\"\l'2i'        \" No line drawn.if n \.       sp 1.3  \" But extra space to make up for it....fc ^ ~         \" The characters ^ and ~ CANNOT BE USED\"                 throughout this document except as field\"                 delimiter & pad indicator!.he ''-%-''.ll 32P         \" 32 Picas or about 5+1/3 inch Line Length.if n .ll 72m   \" Use 72 ems for nroff.nr ss 30p      \" 30 point space before section titles.nr fm 5v       \" RAND likes bigger than normal [3v] bottom margins.nr bm 7v       \"   ditto.ds . \\fB.\\fP\\h'-(1m/3)' \" Bold period to stand out..ds << <\\h!-(\\w'<'/2)!<.ds >> >\\h!-(\\w'>'/2)!>.ds ** \v'-3p'\s+1*\s0\v'+3p'.so version.rf.tp.(l C\fIdiscard this page\fR.sp 4The RAND \fIMH\fRMessage Handling System:User's Manual.spUCI Version.sp 2\*(td\*(MH.)l.++ C.+c INTRODUCTION.ppAlthough people can travel cross-country in hours and canreach others by telephone in seconds, communications still dependheavily upon paper, most of which is distributed through the mails..ppThere are several major reasons for this continued dependence onwritten documents.First, a written document may be proofreadand corrected prior to its distribution, giving the authorcomplete control over his words.Thus, a written document isbetter than a telephone conversation in this respect.Second,a carefully written document is far less likely to bemisinterpreted or poorly translated than a phone conversation.Third, a signature offers reasonable verification of authorship,which cannot be provided with media such as telegrams..ppHowever, the need for.u fast ,accurate, and reproducible document distribution isobvious.One solution in widespread use is the telefax.Anotherthat is rapidly gaining popularity is electronic mail.Electronic mail is similar to telefax in that the data to be sentare digitized, transmitted via phone lines, andturned back into a document at the receiver.The advantage ofelectronic mail is in its compression factor.Whereas a telefaxmust scan a page in very fine lines and send all of the black andwhite information, electronic mail assigns characters fixedcodes which can be transmitted as a few bits of information.Telefax presently has the advantage of being able to transmit anarbitrary page, including pictures, but electronic mail isbeginning to deal with this problem.Electronic mail also integrates wellwith current directions in office automation, allowing documentsprepared with sophisticated equipment at one site to be quicklytransferred and printed at another site..ppCurrently, most electronic mail is intraorganizational,with mail transfer remaining within one computer.As computernetworking becomes more common, however, it is becoming more feasible tocommunicate with anyone whose computer can be linked to yourown via a network..ppThe pioneering efforts on general-purpose electronic mailwere by organizations using the DoD ARPAnet[1].The capability to send messages between computers existed beforethe ARPAnet was developed, but it was used only in limited ways.With the advent of theARPAnet, tools began to be developed which made it convenient forindividuals or organizations to distribute messagesover broad geographic areas, usingdiverse computer facilities.The interest and activity inmessage systems has now reached such proportions that stepshave been taken within the DoD to coordinate andunify the development of military message systems.The use of electronic mail is expected to increasedramatically in the next few years.The utility of such systemsin the command and control and intelligence environments isclear, and applications in these areas will probably lead theway.As the costs for sending and handling electronic messagescontinue their rapid decrease, such uses can beexpected to spread rapidly into other areas and, of course, willnot be limited to the DoD..ppA message system provides tools that help users (individualsor organizations) deal with messages in various ways.Messagesmust be composed, sent, received, stored, retrieved,forwarded, and replied to.Today's best interactive computersystems provide a variety of word-processing and informationhandling capabilities.The message handling facilities should bewell integrated with the rest of the system, so as to be agraceful extension of overall system capability..ppThe message system described in this report, \fIMH\fR, provides most of thefeatures that can be found in other message systems and alsoincorporates some new ones.It has been built on the UNIX time-sharingsystem[2], a popular operating system for the DEC PDP-11\**and VAX-11 classes of computers..(f\** PDP and VAX are trademarks of Digital Equipment Corporation..)fA \*(lqsecure\*(rq operatingsystem similar to UNIX is currently being developed[3],and that system will also run \fIMH\fR..ppThis report provides a complete description of \fIMH\fR andthus may serve as a user's manual, although parts of the reportwill be of interest to non-users as well.Sections 2 and 3, theOverview and Tutorial, present the keyideas of \fIMH\fR and will give those not familiar with message systemsan idea of what such systems are like..pp\fIMH\fR consists of a set of commands which use some specialfiles and conventions.The final section is divided into three parts.The first part covers the informationa user needs to know in addition to thecommands.Then, each of the \fIMH\fR commands is described in detail.Finally, other obscure details are revealed.A summary of the commands is given in Appendix A,and the syntax of message sequences is given in Appendix B..ppA novel approach has been taken in the design of \fIMH\fR.Instead of creating a large subsystem that appears as a singlecommand to the user (such as MS[4]),\fIMH\fR is a collection of separate commandswhich are run as separate programs.The file and directorysystem of UNIX are used directly.Messages are stored asindividual files (datasets), and collections of them are groupedinto directories.In contrast, most other message systems storemessages in a complicated data structure within a monolithicfile.With the \fIMH\fR approach, UNIX commands can beinterleaved with commands invoking the functions of the messagehandler.Conversely, existing UNIX commandscan be used in connection with messages.Forexample, all the usual UNIX editing, text-formatting, and printingfacilities can be applied directly to individual messages.MH,therefore, consists of a relatively small amount of new code; itmakes extensive use of other UNIX software to provide thecapabilities found in other message systems..+c OVERVIEW.ppThere are three main aspects of \fIMH\fR\0:  the  way  messages  arestored (the message database), the user's profile (which directshow certain actions of the message handler take place), and thecommands for dealing with messages..ppUnder \fIMH\fR, each message is stored as a separate file.A usercan take any action with a message that he could with an ordinaryfile in UNIX.A UNIX directory in which messages are stored iscalled a folder.Each folder contains some standard entries to supportthe message-handling functions.The messages in a folder have numericalnames.These folders (directories)are entries in a particular directory path, described inthe user profile, through which \fIMH\fR can find message folders.Using the UNIX \*(lqlink\*(rq facility, it is possible for one copy of amessage to be \*(lqfiled\*(rq in more than one folder, providing amessage index facility.Also, using the UNIX tree-structuredfile system, it is possible to have a folder within a folder,nested arbitrarily deep,and have the full power of the \fIMH\fR commands available..ppEach user of \fIMH\fR has a user profile, a file inhis \fB$HOME\fR (initial login) directory called \fI\&.mh\(ruprofile\fR.This profile contains severalpieces of information used by the \fIMH\fR commands:a path name to the directory that contains the message foldersand parameters that tailor \fIMH\fR commandsto the individual user's requirements.There is also another file,called the user context,which contains information concerning which folder the user last referenced(the \*(lqcurrent\*(rq folder).It also containsmost of the necessary state information concerning howthe user is dealing with his messages, enabling \fIMH\fR to beimplemented as a set of individual UNIX commands, in contrast to theusual approach of a monolithic subsystem..ppIn \fIMH\fR, incoming mail is appendedto the end of a file in a system spooling area for the user.This area is called the mail drop directory,and the file is called the user's mail drop.Normally when the user logins in,s/he is informed of new mail(or the \fIMH\fR program \fImsgchk\fR may be run).The user adds the new messages to his/her collection of \fIMH\fR messagesby invoking the command\fIinc\fR.The \fIinc\fR (incorporate) command adds the newmessages to a folder called \*(lqinbox\*(rq, assigning them names whichare consecutive integers starting with the next highest integeravailable in inbox.\fIinc\fR also produces a\fIscan\fR summary ofthe messages thus incorporated.A folder can be compacted into a single file,for easy storage,by using the \fIpackf\fR command.Also,messages within a folder can be sorted by date and time with the \fIsortm\fRcommand..ppThere are four commands for examining the messages in afolder:\fIshow\fR,\fIprev\fR,\fInext\fR,and\fIscan\fR.The \fIshow\fR command displays a message in a folder,\fIprev\fR displays the message preceding the current message, and\fInext\fR displays the message following the current message.\fIMH\fR lets the user choose the program that displays individual messages.A special program, \fImhl\fR, can be used to display messages accordingto the user's preferences.The \fIscan\fR command summarizes the messages in a folder,normally producing one line per message, showing who the message is from,the date, the subject, etc..ppThe user may move a message from one folder to another withthe command\fIrefile\fR.Messages may be removed from a folderby means of the command\fIrmm\fR.In addition, a user may querywhat the current folder is and may specify that a new folderbecome the current folder, through the command\fIfolder\fR.All folders may be summarized with the \fIfolders\fR command.A message folder (or subfolder) may be removed by means ofthe command\fIrmf\fR..ppA set of messages based on content may be selected byuse of the command \fIpick\fR.This command searches throughmessages in a folder and selects those that match a givenset of criteria.These messages are then bound to a \*(lqsequence\*(rq name for use with other\fIMH\fR commands.The \fImark\fR command manipulates these sequences..ppThere are five commands enabling the user to create newmessages and send them:\fIcomp\fR,\fIdist\fR,\fIforw\fR,\fIrepl\fR,and\fIsend\fR.The \fIcomp\fR commandprovides the facility for the user to compose anew message;\fIdist\fR redistributes mail to additional addressees;\fIforw\fR enables the user to forward messages; and\fIrepl\fR facilitates the generation of a reply to an incoming message.The last three commands may optionally annotate the original message.Messages may be arbitrarily annotated with the \fIanno\fR command.Once a draft has been constructed by one of the four above compositionprograms,a user\-specifiable program is run to query the user as to the disposition ofthe draft prior to sending.\fIMH\fR provides the simple \fIwhatnow\fR program to start users off.Ifa message is not sent directly by one of these commands, it maybe sent at a later time using the command\fIsend\fR.\fIMH\fR allows the use of any UNIX editor when composing a message.For rapid entry, a special editor, \fIprompter\fR, is provided.For programs, a special mail-sending program, \fImhmail\fR, is provided..pp\fIMH\fR supports a personal aliasing facility which gives users thecapability to considerably shorten address typeinand use meaningful names for addresses.The \fIali\fR program can be used to query \fIMH\fR as to the expansion of alist of aliases.After composing a message, but prior to sending, the \fIwhom\fR commandcan be used to determine exactly who a message would go to..pp\fIMH\fR provides a natural interface for telling the user's shell the namesof \fIMH\fR messages and folders.The \fImhpath\fR program achieves this capability..pp@BEGIN: BBOARDSFinally, \fIMH\fR supports the UCI BBoards facility.\fIbbc\fR can be used to query the status of a group of BBoards,while \fImsh\fR can be used to read them.@BEGIN: BBSERVERBBoard leaders are also well supported, with the \fIbbl\fR program.@END: BBSERVER@END: BBOARDSThe \fIburst\fR command can be used to \*(lqshred\*(rq digests of messagesinto individual messages..ppAll of the elements summarized aboveare described in more detail in the following sections.Many of thenormal facilities of UNIX provide additional capabilities fordealing with messages in various ways.For example, it ispossible to print messageson the line-printer without requiring any additional code within\fIMH\fR\0.Using standard UNIX facilities, any terminal output can beredirected to a file for repeated or future viewing.In general,the flexibility and capabilities of the UNIX interface with theuser are preserved as a result of the integration of \fIMH\fR into the UNIXstructure..+c TUTORIAL.ppThis tutorial provides a brief introduction to the \fIMH\fR commands.It should be sufficientto allow the user to read his mail, do some simple manipulations ofit, and create and send messages..ppA message has two major pieces:  theheader and the body.The body consists of the text of the message(whatever you care to type in).It follows the header and is separated fromit by an empty line.(When you compose a message, the form that appearson your terminal shows a line of dashes after the header.This is forconvenience and is replaced by an empty line when the message issent.)  The header is composed of several components, including thesubject of the message and the person to whom it is addressed.Each component starts with a nameand a colon; components must not start with a blank.The text of thecomponent may take more than one line, but each continuation line muststart with a blank.Messages typically have \*(lqTo:\*(rq, \*(lqcc:\*(rq, and\*(lqSubject:\*(rq components.When composing a message, you should includethe \*(lqTo:\*(rq and \*(lqSubject:\*(rq components;the \*(lqcc:\*(rq (for people you want to send copies to) is not necessary..ppThe basic \fIMH\fR commands are\fIinc\fR,\fIscan\fR,

⌨️ 快捷键说明

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