MailBasics.mesa - public DEFS for basic types
Copyright Ó 1988, 1991 by Xerox Corporation. All rights reserved.
Doug Terry, December 2, 1988 1:27:43 pm PST
Wes Irish, December 22, 1988 2:17:04 pm PST
Willie-Sue, August 11, 1989 10:51:54 am PDT
Willie-s, December 10, 1991 7:02 pm PST
Basic type definitions for mail messages, user names, etc.
DIRECTORY
Rope USING [ROPE];
MailBasics: CEDAR DEFINITIONS
= BEGIN
ROPE: TYPE = Rope.ROPE;
The following definitions are concerned with the layout of "message bodies". A message body is the internal representation of a message within and between mail servers. It is also sent to the client when he retrieves his mail. A message body contains a number of "items". Items are used to represent the message text (if any) or other content of the message such as audio or capabilities.
NameSpace: TYPE = ATOM;
Valid types of name services include Grapevine ($gv), Clearinghouse ($chs), Domain Name System ($dns), and X.400 services ($x400).
RName: TYPE = RECORD [
ns: NameSpace,
name: ROPE
];
An R-Name (Recipient-name) is the basic name within the transport mechanism. The form of a name depends on the namespace from which it is drawn. For instance, Grapevine ($gv) names are of the form SN.Reg (Simple-Name.Registry).
RNameList: TYPE = LIST OF RName;
Postmark: TYPE = ROPE;
Timestamp: TYPE = Postmark;
Time stamps: used as UID's for messages.
ItemHeader: TYPE = RECORD [
type: ItemType,
length: ItemLength
];
Information about a message item.
Item: TYPE = REF ItemHeader;
ItemLength: TYPE = INT;
Number of data bytes in the item.
ItemType: TYPE = CARD32;
currently defined types of items are in MailBasicsItemTypes
END.