Introduction
THE MAIL PROTOCOL ENVIRONMENT
The Mail Protocol (MP) is implemented by Mail user and server processes, in keeping with the model for previous high-level protocols. The Mail user and server processes are further specified to be also FTP user and server processes, respectively. That is, MP is implemented as a set of commands accessible from within the FTP command space.
The MP command set is defined to lie conceptually within a subsystem, invoked from the FTP command space with the command MAIL <CFLF>.
NOTE: Since a command called 'MAIL' already exists within the FTP command space, the command name 'XMAIL' might substitute for 'MAIL' while the current mail commands are being phased out.
The MP command set may or may not (according to the implementation of a particular server) be implemented by a process distinct from that which implements FTP proper.
The following are implications of the 'subsystem' concept, of which the reader (and implementer) must be aware:
(1) Names of MP commands are known only within the MP subsystem. MP commands must (and should naturally) be rejected by the server if the user process presents them outside of the subsystem.
(2) Exit from the Mail subsystem (to the FTP command space) is effected with and only with the command EXIT <CRLF>. FTP commands must be rejected by the server if the user presents them while inside the subsystem (i.e., before EXIT is issued).
(3) The same command name may be assigned without ambiguity to two entirely different commands, provided that one lies within the FTP command space and the other within MP, the two being distinguishable by their contexts. MP and FTP therefore do not compete for command names, and MP command names may be chosen without regard for the environment in which the subsystem resides.
NOTE: It so happens that there are commands DEFINED within MP which duplicate the functions of FTP commands and bear the same names. The effective result is that some commands are explicitly allowed within MP. The reader will understand that this fact is consistent with the conventions described in 1-3 above, and that no ambiguities result.
The subsystem concept (if not the name 'subsystem') is taken from Mike Padlipsky's Unified User Level Protocol (UULP), which the author of the present document strongly supports. The fact that MP is accessed from FTP, rather than both FTP and MP being accessed independently from a more general executive program, is simply a concession to the fact that FTP is widely implemented and UULP isn't. The author hopes that protocol development will, in the near future, begin to proceed along the lines exemplified by UULP.
MP conforms to FTP in general syntax. In particular, commands and their responses are strings of NVT characters; command names are limited to four or fewer, upper- or lower-case, alphameric characters, and are terminated by the character SP; commands are generally terminated with the TELNET New Line sequence (CR LF); command responses contain both numeric (process readable) and text (human readable) portions. Both reader and implementer are referred to the FTP protocol document for a detailed description of such matters; no attempt has been made to duplicate the discussion in the present document.
The FTP protocol document assigns those replies whose second digit is '6' to RJE functions. In like manner MP appropriates those reply codes whose second digit is '7' for reporting results peculiar to its functions. It is, however, the author's position that FTP, MP, and the RJE protocol are all best implemented as subsystems under a common UULP executive, in which case a single subset of the reply space could be used unambiguously by all three protocols (and any yet to be defined), since every reply would implicitly be qualified by the name of the subsystem from which it emanates.
THE MAIL MODEL
MP defines mail to be text communicated between users (both human and processes) in less that (but ideally approaching) real time. The definition excludes so-called console-to-console communication, where users exchange information at the character or line level.
Pieces of mail are characterized by such attributes as title, content, author, and recipient. A piece of mail may be a one- or two-line message sent from one individual to another, a draft of a document sent by one individual to a design group for review, a polished, formal document sent from one group to another, a message sent to a human user by a process (e.g., an RJE server process might notify a user by Network Mail when his job has completed), etc. All such forms of communication are mail and are supported by MP.
Pieces of mail can be forwarded from one location to another
Pieces of mail can be replied to.
The identity of the author of a piece of mail can be verified, avoiding forgery and misrepresentation.
Pieces of mail can be permanently recorded, assigned a long-term identifier by which they can be forever be retrieved for reference, and entered in catalogs. And access to such recorded mail can be restricted to a specified subset of the user community.
Some hosts accept mail whose recipients reside elsewhere in the Network, and assume responsibility for delivering the mail to them (worrying about retrying delivery when hosts are down, etc.), and acknowledging its delivery to the sender.
The picture being painted for the reader is one in which processes cooperate in various ways to flexibly move and manage Network mail. The author claims (without proof, of course) that the picture will in the future get yet more complicated, but that the proposal specified here can be conveniently enlarged to handle that picture too.
ORGANIZATION OF THIS DOCUMENT
The rest of this document consists of the following components:
GLOSSARY
The concepts introduced briefly in the section above are more formally defined, and their manner of representation in the protocol specified.
MP FUNCTIONS
The command sequence is defined by which a user process initiates each of the logical functions (e.g., Distribution, Recording, Delivery) which can be performed by a Mail server process.
EXAMPLE
An example of the command-response exchange between a user and server is given.
COMMAND SUMMARY
A summary of MP commands is given.
COMMAND REPLIES
Reply code assignments are given and briefly explained.
FORMAL SYNTAX
The formal syntax of the command language is specified.
In all sections but the last (i.e., the formal syntax presentation), verbose keyword forms are employed, in the interests of clarity. These verbose forms have no existence anywhere but in this document; in implementing a Mail user or server process, the terse keyword forms which appear in the formal syntax presentation are to be employed