<<>> <> <> <> <> <<>> <> <<>> DIRECTORY EnvelopeFormatP1517V1, Rope, MailFormatP1516V3, MailTransportP17V5, MSBasics, MailParse; MSUtils: CEDAR DEFINITIONS ~ BEGIN OPEN EnvelopeFormat: EnvelopeFormatP1517V1, MailFormat: MailFormatP1516V3, MailTransport: MailTransportP17V5; ROPE: TYPE ~ Rope.ROPE; NameBodyPairList: TYPE = LIST OF NameBodyPair; NameBodyPair: TYPE = RECORD [ fieldName: ROPE, fieldBody: ROPE ]; HeaderFromText: PROC [text: ROPE, includeTextAnnotation: BOOL ¬ TRUE, plainText, formatting: ROPE] RETURNS [ header: ROPE, errorCode: MailParse.ParseErrorCode ¬ none, index: INT ¬ 0, included: NameBodyPairList, notIncluded: NameBodyPairList]; <> <> <<"errorCode" indicates success or the particular problem encountered.>> <> <> <> <<"included" is a list of those fields that were successfully encoded into "header">> <<"notIncluded" is a list of those fields that were not successfully encoded into "header".>> <<>> XNSRNameFromRope: PROC [name: ROPE] RETURNS [rName: MSBasics.RName]; <<"name" should be a rope representing an NS name.>> <> <<>> StrippedName: PROC [name, domain, organization: ROPE] RETURNS [stripped: ROPE]; <> <<>> ParseEnvelope: PROC [envelope: MailTransport.Envelope] RETURNS [parsed: MSBasics.Envelope]; <> <<>> SystemMessageFromEnvelope: PROC [envelope: MSBasics.Envelope] RETURNS [msg: ROPE]; <