• rfc # 822

    obsoletes: rfc #733 (nic #41952)

    standard for the format of

    arpa internet text messages

    august 13, 1982

    revised by

    david h. crocker

    dept. of electrical engineering
    university of delaware, newark, de 19711
    network: dcrocker @ udel-relay

    standard for arpa internet text messages

    table of contents

    preface .................................................... ii

    1. introduction ........................................... 1

    1.1. scope ............................................ 1
    1.2. communication framework .......................... 2

    2. notational conventions ................................. 3

    3. lexical analysis of messages ........................... 5

    3.1. general description .............................. 5
    3.2. header field definitions ......................... 9
    3.3. lexical tokens ................................... 10
    3.4. clarifications ................................... 11

    4. message specification .................................. 17

    4.1. syntax ........................................... 17
    4.2. forwarding ....................................... 19
    4.3. trace fields ..................................... 20
    4.4. originator fields ................................ 21
    4.5. receiver fields .................................. 23
    4.6. reference fields ................................. 23
    4.7. other fields ..................................... 24

    5. date and time specification ............................ 26

    5.1. syntax ........................................... 26
    5.2. semantics ........................................ 26

    6. address specification .................................. 27

    6.1. syntax ........................................... 27
    6.2. semantics ........................................ 27
    6.3. reserved address ................................. 33

    7. bibliography ........................................... 34

    appendix

    a. examples ............................................... 36
    b. simple field parsing ................................... 40
    c. differences from rfc #733 .............................. 41
    d. alphabetical listing of syntax rules ................... 44

    august 13, 1982 - i - rfc #822

    standard for arpa internet text messages

    preface

    by 1977, the arpanet employed several informal standards for
    the text messages (mail) sent among its host computers. it was
    felt necessary to codify these practices and provide for those
    features that seemed imminent. the result of that effort was
    request for comments (rfc) #733, "standard for the format of arpa
    network text message", by crocker, vittal, pogran, and henderson.
    the specification attempted to avoid major changes in existing
    software, while permitting several new features.

    this document revises the specifications in rfc #733, in
    order to serve the needs of the larger and more complex arpa
    internet. some of rfc #733's features failed to gain adequate
    acceptance. in order to simplify the standard and the software
    that follows it, these features have been removed. a different
    addressing scheme is used, to handle the case of inter-network
    mail; and the concept of re-transmission has been introduced.

    this specification is intended for use in the arpa internet.
    however, an attempt has been made to free it of any dependence on
    that environment, so that it can be applied to other network text
    message systems.

    the specification of rfc #733 took place over the course of
    one year, using the arpanet mail environment, itself, to provide
    an on-going forum for discussing the capabilities to be included.
    more than twenty individuals, from across the country, partici-
    pated in the original discussion. the development of this
    revised specification has, similarly, utilized network mail-based
    group discussion. both specification efforts greatly benefited
    from the comments and ideas of the participants.

    the syntax of the standard, in rfc #733, was originally
    specified in the backus-naur form (bnf) meta-language. ken l.
    harrenstien, of sri international, was responsible for re-coding
    the bnf into an augmented bnf that makes the representation
    smaller and easier to understand.

    august 13, 1982 - ii - rfc #822

    standard for arpa internet text messages

    1. introduction

    1.1. scope

    this standard specifies a syntax for text messages that are
    sent among computer users, within the framework of "electronic
    mail". the standard supersedes the one specified in arpanet
    request for comments #733, "standard for the format of arpa net-
    work text messages".

    in this context, messages are viewed as having an envelope
    and contents. the envelope contains whatever information is
    needed to accomplish transmission and delivery. the contents
    compose the object to be delivered to the recipient. this stan-
    dard applies only to the format and some of the semantics of mes-
    sage contents. it contains no specification of the information
    in the envelope.

    however, some message systems may use information from the
    contents to create the envelope. it is intended that this stan-
    dard facilitate the acquisition of such information by programs.

    some message systems may store messages in formats that
    differ from the one specified in this standard. this specifica-
    tion is intended strictly as a definition of what message content
    format is to be passed between hosts.

    note: this standard is not intended to dictate the internal for-
    mats used by sites, the specific message system features
    that they are expected to support, or any of the charac-
    teristics of user interface programs that create or read
    messages.

    a distinction should be made between what the specification
    requires and what it allows. messages can be made complex and
    rich with formally-structured components of information or can be
    kept small and simple, with a minimum of such information. also,
    the standard simplifies the interpretation of differing visual
    formats in messages; only the visual aspect of a message is
    affected and not the interpretation of information within it.
    implementors may choose to retain such visual distinctions.

    the formal definition is divided into four levels. the bot-
    tom level describes the meta-notation used in this document. the
    second level describes basic lexical analyzers that feed tokens
    to higher-level parsers. next is an overall specification for
    messages; it permits distinguishing individual fields. finally,
    there is definition of the contents of several structured fields.

    august 13, 1982 - 1 - rfc #822

    standard for arpa internet text messages

    1.2. communication framework

    messages consist of lines of text. no special provisions
    are made for encoding drawings, facsimile, speech, or structured
    text. no significant consideration has been given to questions
    of data compression or to transmission and storage efficiency,
    and the standard tends to be free with the number of bits con-
    sumed. for example, field names are specified as free text,
    rather than special terse codes.

    a general "memo" framework is used. that is, a message con-
    sists of some information in a rigid format, followed by the main
    part of the message, with a format that is not specified in this
    document. the syntax of several fields of the rigidly-formated
    ("headers") section is defined in this specification; some of
    these fields must be included in all messages.

    the syntax that distinguishes between header fields is
    specified separately from the internal syntax for particular
    fields. this separation is intended to allow simple parsers to
    operate on the general structure of messages, without concern for
    the detailed structure of individual header fields. appendix b
    is provided to facilitate construction of these parsers.

    in addition to the fields specified in this document, it is
    expected that other fields will gain common use. as necessary,
    the specifications for these "extension-fields" will be published
    through the same mechanism used to publish this document. users
    may also wish to extend the set of fields that they use
    privately. such "user-defined fields" are permitted.

    the framework severely constrains document tone and appear-
    ance and is primarily useful for most intra-organization communi-
    cations and well-structured inter-organization communication.
    it also can be used for some types of inter-process communica-
    tion, such as simple file transfer and remote job entry. a more
    robust framework might allow for multi-font, multi-color, multi-
    dimension encoding of information. a less robust one, as is
    present in most single-machine message systems, would more
    severely constrain the ability to add fields and the decision to
    include specific fields. in contrast with paper-based communica-
    tion, it is interesting to note that the receiver of a message
    can exercise an extraordinary amount of control over the
    message's appearance. the amount of actual control available to
    message receivers is contingent upon the capabilities of their
    individual message systems.

    august 13, 1982 - 2 - rfc #822

    standard for arpa internet text messages

    2. notational conventions

    this specification uses an augmented backus-naur form (bnf)
    notation. the differences from standard bnf involve naming rules
    and indicating repetition and "local" alternatives.

    2.1. rule naming

    angle brackets ("<", ">") are not used, in general. the
    name of a rule is simply the name itself, rather than "<name>".
    quotation-marks enclose literal text (which may be upper and/or
    lower case). certain basic rules are in uppercase, such as
    space, tab, crlf, digit, alpha, etc. angle brackets are used in
    rule definitions, and in the rest of this document, whenever
    their presence will facilitate discerning the use of rule names.

    2.2. rule1 / rule2: alternatives

    elements separated by slash ("/") are alternatives. there-
    fore "foo / bar" will accept foo or bar.

    2.3. (rule1 rule2): local alternatives

    elements enclosed in parentheses are treated as a single
    element. thus, "(elem (foo / bar) elem)" allows the token
    sequences "elem foo elem" and "elem bar elem".

    2.4. *rule: repetition

    the character "*" preceding an element indicates repetition.
    the full form is:

    <l>*<m>element

    indicating at least <l> and at most <m> occurrences of element.
    default values are 0 and infinity so that "*(element)" allows any
    number, including zero; "1*element" requires at least one; and
    "1*2element" allows one or two.

    2.5. [rule]: optional

    square brackets enclose optional elements; "[foo bar]" is
    equivalent to "*1(foo bar)".

    2.6. nrule: specific repetition

    "<n>(element)" is equivalent to "<n>*<n>(element)"; that is,
    exactly <n> occurrences of (element). thus 2digit is a 2-digit
    number, and 3alpha is a string of three alphabetic characters.

    august 13, 1982 - 3 - rfc #822

    standard for arpa internet text messages

    2.7. #rule: lists

    a construct "#" is defined, similar to "*", as follows:

    <l>#<m>element

    indicating at least <l> and at most <m> elements, each separated
    by one or more commas (","). this makes the usual form of lists
    very easy; a rule such as '(element *("," element))' can be shown
    as "1#element". wherever this construct is used, null elements
    are allowed, but do not contribute to the count of elements
    present. that is, "(element),,(element)" is permitted, but
    counts as only two elements. therefore, where at least one ele-
    ment is required, at least one non-null element must be present.
    default values are 0 and infinity so that "#(element)" allows any
    number, including zero; "1#element" requires at least one; and
    "1#2element" allows one or two.

    2.8. ; comments

    a semi-colon, set off some distance to the right of rule
    text, starts a comment that continues to the end of line. this
    is a simple way of including useful notes in parallel with the
    specifications.

    august 13, 1982 - 4 - rfc #822

    standard for arpa internet text messages

    3. lexical analysis of messages

    3.1. general description

    a message consists of header fields and, optionally, a body.
    the body is simply a sequence of lines containing ascii charac-
    ters. it is separated from the headers by a null line (i.e., a
    line with nothing preceding the crlf).

    3.1.1. long header fields

    each header field can be viewed as a single, logical line of
    ascii characters, comprising a field-name and a field-body.
    for convenience, the field-body portion of this conceptual
    entity can be split into a multiple-line representation; this
    is called "folding". the general rule is that wherever there
    may be linear-white-space (not simply lwsp-chars), a crlf
    immediately followed by at least one lwsp-char may instead be
    inserted. thus, the single line

    to: "joe & j. harvey" <ddd @org>, jjv @ bbn

    can be represented as:

    to: "joe & j. harvey" <ddd @ org>,
    jjv@bbn

    and

    to: "joe & j. harvey"
    <ddd@ org>, jjv
    @bbn

    and

    to: "joe &
    j. harvey" <ddd @ org>, jjv @ bbn

    the process of moving from this folded multiple-line
    representation of a header field to its single line represen-
    tation is called "unfolding". unfolding is accomplished by
    regarding crlf immediately followed by a lwsp-char as
    equivalent to the lwsp-char.

    note: while the standard permits folding wherever linear-
    white-space is permitted, it is recommended that struc-
    tured fields, such as those containing addresses, limit
    folding to higher-level syntactic breaks. for address
    fields, it is recommended that such folding occur

    august 13, 1982 - 5 - rfc #822

    standard for arpa internet text messages

    between addresses, after the separating comma.

    3.1.2. structure of header fields

    once a field has been unfolded, it may be viewed as being com-
    posed of a field-name followed by a colon (":"), followed by a
    field-body, and terminated by a carriage-return/line-feed.
    the field-name must be composed of printable ascii characters
    (i.e., characters that have values between 33. and 126.,
    decimal, except colon). the field-body may be composed of any
    ascii characters, except cr or lf. (while cr and/or lf may be
    present in the actual text, they are removed by the action of
    unfolding the field.)

    certain field-bodies of headers may be interpreted according
    to an internal syntax that some systems may wish to parse.
    these fields are called "structured fields". examples
    include fields containing dates and addresses. other fields,
    such as "subject" and "comments", are regarded simply as
    strings of text.

    note: any field which has a field-body that is defined as
    other than simply <text> is to be treated as a struc-
    tured field.

    field-names, unstructured field bodies and structured
    field bodies each are scanned by their own, independent
    "lexical" analyzers.

    3.1.3. unstructured field bodies

    for some fields, such as "subject" and "comments", no struc-
    turing is assumed, and they are treated simply as <text>s, as
    in the message body. rules of folding apply to these fields,
    so that such field bodies which occupy several lines must
    therefore have the second and successive lines indented by at
    least one lwsp-char.

    3.1.4. structured field bodies

    to aid in the creation and reading of structured fields, the
    free insertion of linear-white-space (which permits folding
    by inclusion of crlfs) is allowed between lexical tokens.
    rather than obscuring the syntax specifications for these
    structured fields with explicit syntax for this linear-white-
    space, the existence of another "lexical" analyzer is assumed.
    this analyzer does not apply for unstructured field bodies
    that are simply strings of text, as described above. the
    analyzer provides an interpretation of the unfolded text

    august 13, 1982 - 6 - rfc #822

    standard for arpa internet text messages

    composing the body of the field as a sequence of lexical sym-
    bols.

    these symbols are:

    - individual special characters
    - quoted-strings
    - domain-literals
    - comments
    - atoms

    the first four of these symbols are self-delimiting. atoms
    are not; they are delimited by the self-delimiting symbols and
    by linear-white-space. for the purposes of regenerating
    sequences of atoms and quoted-strings, exactly one space is
    assumed to exist, and should be used, between them. (also, in
    the "clarifications" section on "white space", below, note the
    rules about treatment of multiple contiguous lwsp-chars.)

    so, for example, the folded body of an address field

    ":sysmail"@ some-group. some-org,
    muhammed.(i am the greatest) ali @(the)vegas.wba

    august 13, 1982 - 7 - rfc #822

    standard for arpa internet text messages

    is analyzed into the following lexical symbols and types:

    :sysmail quoted string
    @ special
    some-group atom
    . special
    some-org atom
    , special
    muhammed atom
    . special
    (i am the greatest) comment
    ali atom
    @ atom
    (the) comment
    vegas atom
    . special
    wba atom

    the canonical representations for the data in these addresses
    are the following strings:

    ":sysmail"@some-group.some-org

    and

    muhammed.ali@vegas.wba

    note: for purposes of display, and when passing such struc-
    tured information to other systems, such as mail proto-
    col services, there must be no linear-white-space
    between <word>s that are separated by period (".") or
    at-sign ("@") and exactly one space between all other
    <word>s. also, headers should be in a folded form.

    august 13, 1982 - 8 - rfc #822

    standard for arpa internet text messages

    3.2. header field definitions

    these rules show a field meta-syntax, without regard for the
    particular type or internal syntax. their purpose is to permit
    detection of fields; also, they present to higher-level parsers
    an image of each field as fitting on one line.

    field = field-name ":" [ field-body ] crlf

    field-name = 1*<any char, excluding ctls, space, and ":">

    field-body = field-body-contents
    [crlf lwsp-char field-body]

    field-body-contents =
    <the ascii characters making up the field-body, as
    defined in the following sections, and consisting
    of combinations of atom, quoted-string, and
    specials tokens, or else consisting of texts>

    august 13, 1982 - 9 - rfc #822

    standard for arpa internet text messages

    3.3. lexical tokens

    the following rules are used to define an underlying lexical
    analyzer, which feeds tokens to higher level parsers. see the
    ansi references, in the bibliography.

    ; ( octal, decimal.)
    char = <any ascii character> ; ( 0-177, 0.-127.)
    alpha = <any ascii alphabetic character>
    ; (101-132, 65.- 90.)
    ; (141-172, 97.-122.)
    digit = <any ascii decimal digit> ; ( 60- 71, 48.- 57.)
    ctl = <any ascii control ; ( 0- 37, 0.- 31.)
    character and del> ; ( 177, 127.)
    cr = <ascii cr, carriage return> ; ( 15, 13.)
    lf = <ascii lf, linefeed> ; ( 12, 10.)
    space = <ascii sp, space> ; ( 40, 32.)
    htab = <ascii ht, horizontal-tab> ; ( 11, 9.)
    <"> = <ascii quote mark> ; ( 42, 34.)
    crlf = cr lf

    lwsp-char = space / htab ; semantics = space

    linear-white-space = 1*([crlf] lwsp-char) ; semantics = space
    ; crlf => folding

    specials = "(" / ")" / "<" / ">" / "@" ; must be in quoted-
    / "," / ";" / ":" / "\" / <"> ; string, to use
    / "." / "[" / "]" ; within a word.

    delimiters = specials / linear-white-space / comment

    text = <any char, including bare ; => atoms, specials,
    cr & bare lf, but not ; comments and
    including crlf> ; quoted-strings are
    ; not recognized.

    atom = 1*<any char except specials, space and ctls>

    quoted-string = <"> *(qtext/quoted-pair) <">; regular qtext or
    ; quoted chars.

    qtext = <any char excepting <">, ; => may be folded
    "\" & cr, and including
    linear-white-space>

    domain-literal = "[" *(dtext / quoted-pair) "]"

    august 13, 1982 - 10 - rfc #822

    standard for arpa internet text messages

    dtext = <any char excluding "[", ; => may be folded
    "]", "\" & cr, & including
    linear-white-space>

    comment = "(" *(ctext / quoted-pair / comment) ")"

    ctext = <any char excluding "(", ; => may be folded
    ")", "\" & cr, & including
    linear-white-space>

    quoted-pair = "\" char ; may quote any char

    phrase = 1*word ; sequence of words

    word = atom / quoted-string

    3.4. clarifications

    3.4.1. quoting

    some characters are reserved for special interpretation, such
    as delimiting lexical tokens. to permit use of these charac-
    ters as uninterpreted data, a quoting mechanism is provided.
    to quote a character, precede it with a backslash ("\").

    this mechanism is not fully general. characters may be quoted
    only within a subset of the lexical constructs. in particu-
    lar, quoting is limited to use within:

    - quoted-string
    - domain-literal
    - comment

    within these constructs, quoting is required for cr and "\"
    and for the character(s) that delimit the token (e.g., "(" and
    ")" for a comment). however, quoting is permitted for any
    character.

    note: in particular, quoting is not permitted within atoms.
    for example when the local-part of an addr-spec must
    contain a special character, a quoted string must be
    used. therefore, a specification such as:

    full\ name@domain

    is not legal and must be specified as:

    "full name"@domain

    august 13, 1982 - 11 - rfc #822

    standard for arpa internet text messages

    3.4.2. white space

    note: in structured field bodies, multiple linear space ascii
    characters (namely htabs and spaces) are treated as
    single spaces and may freely surround any symbol. in
    all header fields, the only place in which at least one
    lwsp-char is required is at the beginning of continua-
    tion lines in a folded field.

    when passing text to processes that do not interpret text
    according to this standard (e.g., mail protocol servers), then
    no linear-white-space characters should occur between a period
    (".") or at-sign ("@") and a <word>. exactly one space should
    be used in place of arbitrary linear-white-space and comment
    sequences.

    note: within systems conforming to this standard, wherever a
    member of the list of delimiters is allowed, lwsp-chars
    may also occur before and/or after it.

    writers of mail-sending (i.e., header-generating) programs
    should realize that there is no network-wide definition of the
    effect of ascii ht (horizontal-tab) characters on the appear-
    ance of text at another network host; therefore, the use of
    tabs in message headers, though permitted, is discouraged.

    3.4.3. comments

    a comment is a set of ascii characters, which is enclosed in
    matching parentheses and which is not within a quoted-string
    the comment construct permits message originators to add text
    which will be useful for human readers, but which will be
    ignored by the formal semantics. comments should be retained
    while the message is subject to interpretation according to
    this standard. however, comments must not be included in
    other cases, such as during protocol exchanges with mail
    servers.

    comments nest, so that if an unquoted left parenthesis occurs
    in a comment string, there must also be a matching right
    parenthesis. when a comment acts as the delimiter between a
    sequence of two lexical symbols, such as two atoms, it is lex-
    ically equivalent with a single space, for the purposes of
    regenerating the sequence, such as when passing the sequence
    onto a mail protocol server. comments are detected as such
    only within field-bodies of structured fields.

    if a comment is to be "folded" onto multiple lines, then the
    syntax for folding must be adhered to. (see the "lexical

    august 13, 1982 - 12 - rfc #822

    standard for arpa internet text messages

    analysis of messages" section on "folding long header fields"
    above, and the section on "case independence" below.) note
    that the official semantics therefore do not "see" any
    unquoted crlfs that are in comments, although particular pars-
    ing programs may wish to note their presence. for these pro-
    grams, it would be reasonable to interpret a "crlf lwsp-char"
    as being a crlf that is part of the comment; i.e., the crlf is
    kept and the lwsp-char is discarded. quoted crlfs (i.e., a
    backslash followed by a cr followed by a lf) still must be
    followed by at least one lwsp-char.

    3.4.4. delimiting and quoting characters

    the quote character (backslash) and characters that delimit
    syntactic units are not, generally, to be taken as data that
    are part of the delimited or quoted unit(s). in particular,
    the quotation-marks that define a quoted-string, the
    parentheses that define a comment and the backslash that
    quotes a following character are not part of the quoted-
    string, comment or quoted character. a quotation-mark that is
    to be part of a quoted-string, a parenthesis that is to be
    part of a comment and a backslash that is to be part of either
    must each be preceded by the quote-character backslash ("\").
    note that the syntax allows any character to be quoted within
    a quoted-string or comment; however only certain characters
    must be quoted to be included as data. these characters are
    the ones that are not part of the alternate text group (i.e.,
    ctext or qtext).

    the one exception to this rule is that a single space is
    assumed to exist between contiguous words in a phrase, and
    this interpretation is independent of the actual number of
    lwsp-chars that the creator places between the words. to
    include more than one space, the creator must make the lwsp-
    chars be part of a quoted-string.

    quotation marks that delimit a quoted string and backslashes
    that quote the following character should not accompany the
    quoted-string when the string is passed to processes that do
    not interpret data according to this specification (e.g., mail
    protocol servers).

    3.4.5. quoted-strings

    where permitted (i.e., in words in structured fields) quoted-
    strings are treated as a single symbol. that is, a quoted-
    string is equivalent to an atom, syntactically. if a quoted-
    string is to be "folded" onto multiple lines, then the syntax
    for folding must be adhered to. (see the "lexical analysis of

    august 13, 1982 - 13 - rfc #822

    standard for arpa internet text messages

    messages" section on "folding long header fields" above, and
    the section on "case independence" below.) therefore, the
    official semantics do not "see" any bare crlfs that are in
    quoted-strings; however particular parsing programs may wish
    to note their presence. for such programs, it would be rea-
    sonable to interpret a "crlf lwsp-char" as being a crlf which
    is part of the quoted-string; i.e., the crlf is kept and the
    lwsp-char is discarded. quoted crlfs (i.e., a backslash fol-
    lowed by a cr followed by a lf) are also subject to rules of
    folding, but the presence of the quoting character (backslash)
    explicitly indicates that the crlf is data to the quoted
    string. stripping off the first following lwsp-char is also
    appropriate when parsing quoted crlfs.

    3.4.6. bracketing characters

    there is one type of bracket which must occur in matched pairs
    and may have pairs nested within each other:

    o parentheses ("(" and ")") are used to indicate com-
    ments.

    there are three types of brackets which must occur in matched
    pairs, and which may not be nested:

    o colon/semi-colon (":" and ";") are used in address
    specifications to indicate that the included list of
    addresses are to be treated as a group.

    o angle brackets ("<" and ">") are generally used to
    indicate the presence of a one machine-usable refer-
    ence (e.g., delimiting mailboxes), possibly including
    source-routing to the machine.

    o square brackets ("[" and "]") are used to indicate the
    presence of a domain-literal, which the appropriate
    name-domain is to use directly, bypassing normal
    name-resolution mechanisms.

    3.4.7. case independence

    except as noted, alphabetic strings may be represented in any
    combination of upper and lower case. the only syntactic units

    august 13, 1982 - 14 - rfc #822

    standard for arpa internet text messages

    which requires preservation of case information are:

    - text
    - qtext
    - dtext
    - ctext
    - quoted-pair
    - local-part, except "postmaster"

    when matching any other syntactic unit, case is to be ignored.
    for example, the field-names "from", "from", "from", and even
    "from" are semantically equal and should all be treated ident-
    ically.

    when generating these units, any mix of upper and lower case
    alphabetic characters may be used. the case shown in this
    specification is suggested for message-creating processes.

    note: the reserved local-part address unit, "postmaster", is
    an exception. when the value "postmaster" is being
    interpreted, it must be accepted in any mixture of
    case, including "postmaster", and "postmaster".

    3.4.8. folding long header fields

    each header field may be represented on exactly one line con-
    sisting of the name of the field and its body, and terminated
    by a crlf; this is what the parser sees. for readability, the
    field-body portion of long header fields may be "folded" onto
    multiple lines of the actual field. "long" is commonly inter-
    preted to mean greater than 65 or 72 characters. the former
    length serves as a limit, when the message is to be viewed on
    most simple terminals which use simple display software; how-
    ever, the limit is not imposed by this standard.

    note: some display software often can selectively fold lines,
    to suit the display terminal. in such cases, sender-
    provided folding can interfere with the display
    software.

    3.4.9. backspace characters

    ascii bs characters (backspace, decimal 8) may be included in
    texts and quoted-strings to effect overstriking. however, any
    use of backspaces which effects an overstrike to the left of
    the beginning of the text or quoted-string is prohibited.

    august 13, 1982 - 15 - rfc #822

    standard for arpa internet text messages

    3.4.10. network-specific transformations

    during transmission through heterogeneous networks, it may be
    necessary to force data to conform to a network's local con-
    ventions. for example, it may be required that a cr be fol-
    lowed either by lf, making a crlf, or by <null>, if the cr is
    to stand alone). such transformations are reversed, when the
    message exits that network.

    when crossing network boundaries, the message should be
    treated as passing through two modules. it will enter the
    first module containing whatever network-specific transforma-
    tions that were necessary to permit migration through the
    "current" network. it then passes through the modules:

    o transformation reversal

    the "current" network's idiosyncracies are removed and
    the message is returned to the canonical form speci-
    fied in this standard.

    o transformation

    the "next" network's local idiosyncracies are imposed
    on the message.

    ------------------
    from ==> | remove net-a |
    net-a | idiosyncracies |
    ------------------
    ||
    \/
    conformance
    with standard
    ||
    \/
    ------------------
    | impose net-b | ==> to
    | idiosyncracies | net-b
    ------------------

    august 13, 1982 - 16 - rfc #822

    standard for arpa internet text messages

    4. message specification

    4.1. syntax

    note: due to an artifact of the notational conventions, the syn-
    tax indicates that, when present, some fields, must be in
    a particular order. header fields are not required to
    occur in any particular order, except that the message
    body must occur after the headers. it is recommended
    that, if present, headers be sent in the order "return-
    path", "received", "date", "from", "subject", "sender",
    "to", "cc", etc.

    this specification permits multiple occurrences of most
    fields. except as noted, their interpretation is not
    specified here, and their use is discouraged.

    the following syntax for the bodies of various fields should
    be thought of as describing each field body as a single long
    string (or line). the "lexical analysis of message" section on
    "long header fields", above, indicates how such long strings can
    be represented on more than one line in the actual transmitted
    message.

    message = fields *( crlf *text ) ; everything after
    ; first null line
    ; is message body

    fields = dates ; creation time,
    source ; author id & one
    1*destination ; address required
    *optional-field ; others optional

    source = [ trace ] ; net traversals
    originator ; original mail
    [ resent ] ; forwarded

    trace = return ; path to sender
    1*received ; receipt tags

    return = "return-path" ":" route-addr ; return address

    received = "received" ":" ; one per relay
    ["from" domain] ; sending host
    ["by" domain] ; receiving host
    ["via" atom] ; physical path
    *("with" atom) ; link/mail protocol
    ["id" msg-id] ; receiver msg id
    ["for" addr-spec] ; initial form

    august 13, 1982 - 17 - rfc #822

    standard for arpa internet text messages

    ";" date-time ; time received

    originator = authentic ; authenticated addr
    [ "reply-to" ":" 1#address] )

    authentic = "from" ":" mailbox ; single author
    / ( "sender" ":" mailbox ; actual submittor
    "from" ":" 1#mailbox) ; multiple authors
    ; or not sender

    resent = resent-authentic
    [ "resent-reply-to" ":" 1#address] )

    resent-authentic =
    = "resent-from" ":" mailbox
    / ( "resent-sender" ":" mailbox
    "resent-from" ":" 1#mailbox )

    dates = orig-date ; original
    [ resent-date ] ; forwarded

    orig-date = "date" ":" date-time

    resent-date = "resent-date" ":" date-time

    destination = "to" ":" 1#address ; primary
    / "resent-to" ":" 1#address
    / "cc" ":" 1#address ; secondary
    / "resent-cc" ":" 1#address
    / "bcc" ":" #address ; blind carbon
    / "resent-bcc" ":" #address

    optional-field =
    / "message-id" ":" msg-id
    / "resent-message-id" ":" msg-id
    / "in-reply-to" ":" *(phrase / msg-id)
    / "references" ":" *(phrase / msg-id)
    / "keywords" ":" #phrase
    / "subject" ":" *text
    / "comments" ":" *text
    / "encrypted" ":" 1#2word
    / extension-field ; to be defined
    / user-defined-field ; may be pre-empted

    msg-id = "<" addr-spec ">" ; unique message id

    august 13, 1982 - 18 - rfc #822

    standard for arpa internet text messages

    extension-field =
    <any field which is defined in a document
    published as a formal extension to this
    specification; none will have names beginning
    with the string "x-">

    user-defined-field =
    <any field which has not been defined
    in this specification or published as an
    extension to this specification; names for
    such fields must be unique and may be
    pre-empted by published extensions>

    4.2. forwarding

    some systems permit mail recipients to forward a message,
    retaining the original headers, by adding some new fields. this
    standard supports such a service, through the "resent-" prefix to
    field names.

    whenever the string "resent-" begins a field name, the field
    has the same semantics as a field whose name does not have the
    prefix. however, the message is assumed to have been forwarded
    by an original recipient who attached the "resent-" field. this
    new field is treated as being more recent than the equivalent,
    original field. for example, the "resent-from", indicates the
    person that forwarded the message, whereas the "from" field indi-
    cates the original author.

    use of such precedence information depends upon partici-
    pants' communication needs. for example, this standard does not
    dictate when a "resent-from:" address should receive replies, in
    lieu of sending them to the "from:" address.

    note: in general, the "resent-" fields should be treated as con-
    taining a set of information that is independent of the
    set of original fields. information for one set should
    not automatically be taken from the other. the interpre-
    tation of multiple "resent-" fields, of the same type, is
    undefined.

    in the remainder of this specification, occurrence of legal
    "resent-" fields are treated identically with the occurrence of

    august 13, 1982 - 19 - rfc #822

    standard for arpa internet text messages

    fields whose names do not contain this prefix.

    4.3. trace fields

    trace information is used to provide an audit trail of mes-
    sage handling. in addition, it indicates a route back to the
    sender of the message.

    the list of known "via" and "with" values are registered
    with the network information center, sri international, menlo
    park, california.

    4.3.1. return-path

    this field is added by the final transport system that
    delivers the message to its recipient. the field is intended
    to contain definitive information about the address and route
    back to the message's originator.

    note: the "reply-to" field is added by the originator and
    serves to direct replies, whereas the "return-path"
    field is used to identify a path back to the origina-
    tor.

    while the syntax indicates that a route specification is
    optional, every attempt should be made to provide that infor-
    mation in this field.

    4.3.2. received

    a copy of this field is added by each transport service that
    relays the message. the information in the field can be quite
    useful for tracing transport problems.

    the names of the sending and receiving hosts and time-of-
    receipt may be specified. the "via" parameter may be used, to
    indicate what physical mechanism the message was sent over,
    such as arpanet or phonenet, and the "with" parameter may be
    used to indicate the mail-, or connection-, level protocol
    that was used, such as the smtp mail protocol, or x.25 tran-
    sport protocol.

    note: several "with" parameters may be included, to fully
    specify the set of protocols that were used.

    some transport services queue mail; the internal message iden-
    tifier that is assigned to the message may be noted, using the
    "id" parameter. when the sending host uses a destination
    address specification that the receiving host reinterprets, by

    august 13, 1982 - 20 - rfc #822

    standard for arpa internet text messages

    expansion or transformation, the receiving host may wish to
    record the original specification, using the "for" parameter.
    for example, when a copy of mail is sent to the member of a
    distribution list, this parameter may be used to record the
    original address that was used to specify the list.

    4.4. originator fields

    the standard allows only a subset of the combinations possi-
    ble with the from, sender, reply-to, resent-from, resent-sender,
    and resent-reply-to fields. the limitation is intentional.

    4.4.1. from / resent-from

    this field contains the identity of the person(s) who wished
    this message to be sent. the message-creation process should
    default this field to be a single, authenticated machine
    address, indicating the agent (person, system or process)
    entering the message. if this is not done, the "sender" field
    must be present. if the "from" field is defaulted this way,
    the "sender" field is optional and is redundant with the
    "from" field. in all cases, addresses in the "from" field
    must be machine-usable (addr-specs) and may not contain named
    lists (groups).

    4.4.2. sender / resent-sender

    this field contains the authenticated identity of the agent
    (person, system or process) that sends the message. it is
    intended for use when the sender is not the author of the mes-
    sage, or to indicate who among a group of authors actually
    sent the message. if the contents of the "sender" field would
    be completely redundant with the "from" field, then the
    "sender" field need not be present and its use is discouraged
    (though still legal). in particular, the "sender" field must
    be present if it is not the same as the "from" field.

    the sender mailbox specification includes a word sequence
    which must correspond to a specific agent (i.e., a human user
    or a computer program) rather than a standard address. this
    indicates the expectation that the field will identify the
    single agent (person, system, or process) responsible for
    sending the mail and not simply include the name of a mailbox
    from which the mail was sent. for example in the case of a
    shared login name, the name, by itself, would not be adequate.
    the local-part address unit, which refers to this agent, is
    expected to be a computer system term, and not (for example) a
    generalized person reference which can be used outside the
    network text message context.

    august 13, 1982 - 21 - rfc #822

    standard for arpa internet text messages

    since the critical function served by the "sender" field is
    identification of the agent responsible for sending mail and
    since computer programs cannot be held accountable for their
    behavior, it is strongly recommended that when a computer pro-
    gram generates a message, the human who is responsible for
    that program be referenced as part of the "sender" field mail-
    box specification.

    4.4.3. reply-to / resent-reply-to

    this field provides a general mechanism for indicating any
    mailbox(es) to which responses are to be sent. three typical
    uses for this feature can be distinguished. in the first
    case, the author(s) may not have regular machine-based mail-
    boxes and therefore wish(es) to indicate an alternate machine
    address. in the second case, an author may wish additional
    persons to be made aware of, or responsible for, replies. a
    somewhat different use may be of some help to "text message
    teleconferencing" groups equipped with automatic distribution
    services: include the address of that service in the "reply-
    to" field of all messages submitted to the teleconference;
    then participants can "reply" to conference submissions to
    guarantee the correct distribution of any submission of their
    own.

    note: the "return-path" field is added by the mail transport
    service, at the time of final deliver. it is intended
    to identify a path back to the orginator of the mes-
    sage. the "reply-to" field is added by the message
    originator and is intended to direct replies.

    4.4.4. automatic use of from / sender / reply-to

    for systems which automatically generate address lists for
    replies to messages, the following recommendations are made:

    o the "sender" field mailbox should be sent notices of
    any problems in transport or delivery of the original
    messages. if there is no "sender" field, then the
    "from" field mailbox should be used.

    o the "sender" field mailbox should never be used
    automatically, in a recipient's reply message.

    o if the "reply-to" field exists, then the reply should
    go to the addresses indicated in that field and not to
    the address(es) indicated in the "from" field.

    august 13, 1982 - 22 - rfc #822

    standard for arpa internet text messages

    o if there is a "from" field, but no "reply-to" field,
    the reply should be sent to the address(es) indicated
    in the "from" field.

    sometimes, a recipient may actually wish to communicate with
    the person that initiated the message transfer. in such
    cases, it is reasonable to use the "sender" address.

    this recommendation is intended only for automated use of
    originator-fields and is not intended to suggest that replies
    may not also be sent to other recipients of messages. it is
    up to the respective mail-handling programs to decide what
    additional facilities will be provided.

    examples are provided in appendix a.

    4.5. receiver fields

    4.5.1. to / resent-to

    this field contains the identity of the primary recipients of
    the message.

    4.5.2. cc / resent-cc

    this field contains the identity of the secondary (informa-
    tional) recipients of the message.

    4.5.3. bcc / resent-bcc

    this field contains the identity of additional recipients of
    the message. the contents of this field are not included in
    copies of the message sent to the primary and secondary reci-
    pients. some systems may choose to include the text of the
    "bcc" field only in the author(s)'s copy, while others may
    also include it in the text sent to all those indicated in the
    "bcc" list.

    4.6. reference fields

    4.6.1. message-id / resent-message-id

    this field contains a unique identifier (the local-part
    address unit) which refers to this version of this message.
    the uniqueness of the message identifier is guaranteed by the
    host which generates it. this identifier is intended to be
    machine readable and not necessarily meaningful to humans. a
    message identifier pertains to exactly one instantiation of a
    particular message; subsequent revisions to the message should

    august 13, 1982 - 23 - rfc #822

    standard for arpa internet text messages

    each receive new message identifiers.

    4.6.2. in-reply-to

    the contents of this field identify previous correspon-
    dence which this message answers. note that if message iden-
    tifiers are used in this field, they must use the msg-id
    specification format.

    4.6.3. references

    the contents of this field identify other correspondence
    which this message references. note that if message identif-
    iers are used, they must use the msg-id specification format.

    4.6.4. keywords

    this field contains keywords or phrases, separated by
    commas.

    4.7. other fields

    4.7.1. subject

    this is intended to provide a summary, or indicate the
    nature, of the message.

    4.7.2. comments

    permits adding text comments onto the message without
    disturbing the contents of the message's body.

    4.7.3. encrypted

    sometimes, data encryption is used to increase the
    privacy of message contents. if the body of a message has
    been encrypted, to keep its contents private, the "encrypted"
    field can be used to note the fact and to indicate the nature
    of the encryption. the first <word> parameter indicates the
    software used to encrypt the body, and the second, optional
    <word> is intended to aid the recipient in selecting the
    proper decryption key. this code word may be viewed as an
    index to a table of keys held by the recipient.

    note: unfortunately, headers must contain envelope, as well
    as contents, information. consequently, it is neces-
    sary that they remain unencrypted, so that mail tran-
    sport services may access them. since names,
    addresses, and "subject" field contents may contain

    august 13, 1982 - 24 - rfc #822

    standard for arpa internet text messages

    sensitive information, this requirement limits total
    message privacy.

    names of encryption software are registered with the net-
    work information center, sri international, menlo park, cali-
    fornia.

    4.7.4. extension-field

    a limited number of common fields have been defined in
    this document. as network mail requirements dictate, addi-
    tional fields may be standardized. to provide user-defined
    fields with a measure of safety, in name selection, such
    extension-fields will never have names that begin with the
    string "x-".

    names of extension-fields are registered with the network
    information center, sri international, menlo park, california.

    4.7.5. user-defined-field

    individual users of network mail are free to define and
    use additional header fields. such fields must have names
    which are not already used in the current specification or in
    any definitions of extension-fields, and the overall syntax of
    these user-defined-fields must conform to this specification's
    rules for delimiting and folding fields. due to the
    extension-field publishing process, the name of a user-
    defined-field may be pre-empted

    note: the prefatory string "x-" will never be used in the
    names of extension-fields. this provides user-defined
    fields with a protected set of names.

    august 13, 1982 - 25 - rfc #822

    standard for arpa internet text messages

    5. date and time specification

    5.1. syntax

    date-time = [ day "," ] date time ; dd mm yy
    ; hh:mm:ss zzz

    day = "mon" / "tue" / "wed" / "thu"
    / "fri" / "sat" / "sun"

    date = 1*2digit month 2digit ; day month year
    ; e.g. 20 jun 82

    month = "jan" / "feb" / "mar" / "apr"
    / "may" / "jun" / "jul" / "aug"
    / "sep" / "oct" / "nov" / "dec"

    time = hour zone ; ansi and military

    hour = 2digit ":" 2digit [":" 2digit]
    ; 00:00:00 - 23:59:59

    zone = "ut" / "gmt" ; universal time
    ; north american : ut
    / "est" / "edt" ; eastern: - 5/ - 4
    / "cst" / "cdt" ; central: - 6/ - 5
    / "mst" / "mdt" ; mountain: - 7/ - 6
    / "pst" / "pdt" ; pacific: - 8/ - 7
    / 1alpha ; military: z = ut;
    ; a:-1; (j not used)
    ; m:-12; n:+1; y:+12
    / ( ("+" / "-") 4digit ) ; local differential
    ; hours+min. (hhmm)

    5.2. semantics

    if included, day-of-week must be the day implied by the date
    specification.

    time zone may be indicated in several ways. "ut" is univer-
    sal time (formerly called "greenwich mean time"); "gmt" is per-
    mitted as a reference to universal time. the military standard
    uses a single character for each zone. "z" is universal time.
    "a" indicates one hour earlier, and "m" indicates 12 hours ear-
    lier; "n" is one hour later, and "y" is 12 hours later. the
    letter "j" is not used. the other remaining two forms are taken
    from ansi standard x3.51-1975. one allows explicit indication of
    the amount of offset from ut; the other uses common 3-character
    strings for indicating time zones in north america.

    august 13, 1982 - 26 - rfc #822

    standard for arpa internet text messages

    6. address specification

    6.1. syntax

    address = mailbox ; one addressee
    / group ; named list

    group = phrase ":" [#mailbox] ";"

    mailbox = addr-spec ; simple address
    / phrase route-addr ; name & addr-spec

    route-addr = "<" [route] addr-spec ">"

    route = 1#("@" domain) ":" ; path-relative

    addr-spec = local-part "@" domain ; global address

    local-part = word *("." word) ; uninterpreted
    ; case-preserved

    domain = sub-domain *("." sub-domain)

    sub-domain = domain-ref / domain-literal

    domain-ref = atom ; symbolic reference

    6.2. semantics

    a mailbox receives mail. it is a conceptual entity which
    does not necessarily pertain to file storage. for example, some
    sites may choose to print mail on their line printer and deliver
    the output to the addressee's desk.

    a mailbox specification comprises a person, system or pro-
    cess name reference, a domain-dependent string, and a name-domain
    reference. the name reference is optional and is usually used to
    indicate the human name of a recipient. the name-domain refer-
    ence specifies a sequence of sub-domains. the domain-dependent
    string is uninterpreted, except by the final sub-domain; the rest
    of the mail service merely transmits it as a literal string.

    6.2.1. domains

    a name-domain is a set of registered (mail) names. a name-
    domain specification resolves to a subordinate name-domain
    specification or to a terminal domain-dependent string.
    hence, domain specification is extensible, permitting any
    number of registration levels.

    august 13, 1982 - 27 - rfc #822

    standard for arpa internet text messages

    name-domains model a global, logical, hierarchical addressing
    scheme. the model is logical, in that an address specifica-
    tion is related to name registration and is not necessarily
    tied to transmission path. the model's hierarchy is a
    directed graph, called an in-tree, such that there is a single
    path from the root of the tree to any node in the hierarchy.
    if more than one path actually exists, they are considered to
    be different addresses.

    the root node is common to all addresses; consequently, it is
    not referenced. its children constitute "top-level" name-
    domains. usually, a service has access to its own full domain
    specification and to the names of all top-level name-domains.

    the "top" of the domain addressing hierarchy -- a child of the
    root -- is indicated by the right-most field, in a domain
    specification. its child is specified to the left, its child
    to the left, and so on.

    some groups provide formal registration services; these con-
    stitute name-domains that are independent logically of
    specific machines. in addition, networks and machines impli-
    citly compose name-domains, since their membership usually is
    registered in name tables.

    in the case of formal registration, an organization implements
    a (distributed) data base which provides an address-to-route
    mapping service for addresses of the form:

    person@registry.organization

    note that "organization" is a logical entity, separate from
    any particular communication network.

    a mechanism for accessing "organization" is universally avail-
    able. that mechanism, in turn, seeks an instantiation of the
    registry; its location is not indicated in the address specif-
    ication. it is assumed that the system which operates under
    the name "organization" knows how to find a subordinate regis-
    try. the registry will then use the "person" string to deter-
    mine where to send the mail specification.

    the latter, network-oriented case permits simple, direct,
    attachment-related address specification, such as:

    user@host.network

    once the network is accessed, it is expected that a message
    will go directly to the host and that the host will resolve

    august 13, 1982 - 28 - rfc #822

    standard for arpa internet text messages

    the user name, placing the message in the user's mailbox.

    6.2.2. abbreviated domain specification

    since any number of levels is possible within the domain
    hierarchy, specification of a fully qualified address can
    become inconvenient. this standard permits abbreviated domain
    specification, in a special case:

    for the address of the sender, call the left-most
    sub-domain level n. in a header address, if all of
    the sub-domains above (i.e., to the right of) level n
    are the same as those of the sender, then they do not
    have to appear in the specification. otherwise, the
    address must be fully qualified.

    this feature is subject to approval by local sub-
    domains. individual sub-domains may require their
    member systems, which originate mail, to provide full
    domain specification only. when permitted, abbrevia-
    tions may be present only while the message stays
    within the sub-domain of the sender.

    use of this mechanism requires the sender's sub-domain
    to reserve the names of all top-level domains, so that
    full specifications can be distinguished from abbrevi-
    ated specifications.

    for example, if a sender's address is:

    sender@registry-a.registry-1.organization-x

    and one recipient's address is:

    recipient@registry-b.registry-1.organization-x

    and another's is:

    recipient@registry-c.registry-2.organization-x

    then ".registry-1.organization-x" need not be specified in the
    the message, but "registry-c.registry-2" does have to be
    specified. that is, the first two addresses may be abbrevi-
    ated, but the third address must be fully specified.

    when a message crosses a domain boundary, all addresses must
    be specified in the full format, ending with the top-level
    name-domain in the right-most field. it is the responsibility
    of mail forwarding services to ensure that addresses conform

    august 13, 1982 - 29 - rfc #822

    standard for arpa internet text messages

    with this requirement. in the case of abbreviated addresses,
    the relaying service must make the necessary expansions. it
    should be noted that it often is difficult for such a service
    to locate all occurrences of address abbreviations. for exam-
    ple, it will not be possible to find such abbreviations within
    the body of the message. the "return-path" field can aid
    recipients in recovering from these errors.

    note: when passing any portion of an addr-spec onto a process
    which does not interpret data according to this stan-
    dard (e.g., mail protocol servers). there must be no
    lwsp-chars preceding or following the at-sign or any
    delimiting period ("."), such as shown in the above
    examples, and only one space between contiguous
    <word>s.

    6.2.3. domain terms

    a domain-ref must be the official name of a registry, network,
    or host. it is a symbolic reference, within a name sub-
    domain. at times, it is necessary to bypass standard mechan-
    isms for resolving such references, using more primitive
    information, such as a network host address rather than its
    associated host name.

    to permit such references, this standard provides the domain-
    literal construct. its contents must conform with the needs
    of the sub-domain in which it is interpreted.

    domain-literals which refer to domains within the arpa inter-
    net specify 32-bit internet addresses, in four 8-bit fields
    noted in decimal, as described in request for comments #820,
    "assigned numbers." for example:

    [10.0.3.19]

    note: the use of domain-literals is strongly discouraged. it
    is permitted only as a means of bypassing temporary
    system limitations, such as name tables which are not
    complete.

    the names of "top-level" domains, and the names of domains
    under in the arpa internet, are registered with the network
    information center, sri international, menlo park, california.

    6.2.4. domain-dependent local string

    the local-part of an addr-spec in a mailbox specification
    (i.e., the host's name for the mailbox) is understood to be

    august 13, 1982 - 30 - rfc #822

    standard for arpa internet text messages

    whatever the receiving mail protocol server allows. for exam-
    ple, some systems do not understand mailbox references of the
    form "p. d. q. bach", but others do.

    this specification treats periods (".") as lexical separators.
    hence, their presence in local-parts which are not quoted-
    strings, is detected. however, such occurrences carry no
    semantics. that is, if a local-part has periods within it, an
    address parser will divide the local-part into several tokens,
    but the sequence of tokens will be treated as one uninter-
    preted unit. the sequence will be re-assembled, when the
    address is passed outside of the system such as to a mail pro-
    tocol service.

    for example, the address:

    first.last@registry.org

    is legal and does not require the local-part to be surrounded
    with quotation-marks. (however, "first last" does require
    quoting.) the local-part of the address, when passed outside
    of the mail system, within the registry.org domain, is
    "first.last", again without quotation marks.

    6.2.5. balancing local-part and domain

    in some cases, the boundary between local-part and domain can
    be flexible. the local-part may be a simple string, which is
    used for the final determination of the recipient's mailbox.
    all other levels of reference are, therefore, part of the
    domain.

    for some systems, in the case of abbreviated reference to the
    local and subordinate sub-domains, it may be possible to
    specify only one reference within the domain part and place
    the other, subordinate name-domain references within the
    local-part. this would appear as:

    mailbox.sub1.sub2@this-domain

    such a specification would be acceptable to address parsers
    which conform to rfc #733, but do not support this newer
    internet standard. while contrary to the intent of this stan-
    dard, the form is legal.

    also, some sub-domains have a specification syntax which does
    not conform to this standard. for example:

    sub-net.mailbox@sub-domain.domain

    august 13, 1982 - 31 - rfc #822

    standard for arpa internet text messages

    uses a different parsing sequence for local-part than for
    domain.

    note: as a rule, the domain specification should contain
    fields which are encoded according to the syntax of
    this standard and which contain generally-standardized
    information. the local-part specification should con-
    tain only that portion of the address which deviates
    from the form or intention of the domain field.

    6.2.6. multiple mailboxes

    an individual may have several mailboxes and wish to receive
    mail at whatever mailbox is convenient for the sender to
    access. this standard does not provide a means of specifying
    "any member of" a list of mailboxes.

    a set of individuals may wish to receive mail as a single unit
    (i.e., a distribution list). the <group> construct permits
    specification of such a list. recipient mailboxes are speci-
    fied within the bracketed part (":" - ";"). a copy of the
    transmitted message is to be sent to each mailbox listed.
    this standard does not permit recursive specification of
    groups within groups.

    while a list must be named, it is not required that the con-
    tents of the list be included. in this case, the <address>
    serves only as an indication of group distribution and would
    appear in the form:

    name:;

    some mail services may provide a group-list distribution
    facility, accepting a single mailbox reference, expanding it
    to the full distribution list, and relaying the mail to the
    list's members. this standard provides no additional syntax
    for indicating such a service. using the <group> address
    alternative, while listing one mailbox in it, can mean either
    that the mailbox reference will be expanded to a list or that
    there is a group with one member.

    6.2.7. explicit path specification

    at times, a message originator may wish to indicate the
    transmission path that a message should follow. this is
    called source routing. the normal addressing scheme, used in
    an addr-spec, is carefully separated from such information;
    the <route> portion of a route-addr is provided for such occa-
    sions. it specifies the sequence of hosts and/or transmission

    august 13, 1982 - 32 - rfc #822

    standard for arpa internet text messages

    services that are to be traversed. both domain-refs and
    domain-literals may be used.

    note: the use of source routing is discouraged. unless the
    sender has special need of path restriction, the choice
    of transmission route should be left to the mail tran-
    sport service.

    6.3. reserved address

    it often is necessary to send mail to a site, without know-
    ing any of its valid addresses. for example, there may be mail
    system dysfunctions, or a user may wish to find out a person's
    correct address, at that site.

    this standard specifies a single, reserved mailbox address
    (local-part) which is to be valid at each site. mail sent to
    that address is to be routed to a person responsible for the
    site's mail system or to a person with responsibility for general
    site operation. the name of the reserved local-part address is:

    postmaster

    so that "postmaster@domain" is required to be valid.

    note: this reserved local-part must be matched without sensi-
    tivity to alphabetic case, so that "postmaster", "postmas-
    ter", and even "postmaster" is to be accepted.

    august 13, 1982 - 33 - rfc #822

    standard for arpa internet text messages

    7. bibliography

    ansi. "usa standard code for information interchange," x3.4.
    american national standards institute: new york (1968). also
    in: feinler, e. and j. postel, eds., "arpanet protocol hand-
    book", nic 7104.

    ansi. "representations of universal time, local time differen-
    tials, and united states time zone references for information
    interchange," x3.51-1975. american national standards insti-
    tute: new york (1975).

    bemer, r.w., "time and the computer." in: interface age (feb.
    1979).

    bennett, c.j. "jnt mail protocol". joint network team, ruther-
    ford and appleton laboratory: didcot, england.

    bhushan, a.k., pogran, k.t., tomlinson, r.s., and white, j.e.
    "standardizing network mail headers," arpanet request for
    comments no. 561, network information center no. 18516; sri
    international: menlo park (september 1973).

    birrell, a.d., levin, r., needham, r.m., and schroeder, m.d.
    "grapevine: an exercise in distributed computing," communica-
    tions of the acm 25, 4 (april 1982), 260-274.

    crocker, d.h., vittal, j.j., pogran, k.t., henderson, d.a.
    "standard for the format of arpa network text message,"
    arpanet request for comments no. 733, network information
    center no. 41952. sri international: menlo park (november
    1977).

    feinler, e.j. and postel, j.b. arpanet protocol handbook, net-
    work information center no. 7104 (ntis ad a003890). sri
    international: menlo park (april 1976).

    harary, f. "graph theory". addison-wesley: reading, mass.
    (1969).

    levin, r. and schroeder, m. "transport of electronic messages
    through a network," teleinformatics 79, pp. 29-33. north
    holland (1979). also as xerox palo alto research center
    technical report csl-79-4.

    myer, t.h. and henderson, d.a. "message transmission protocol,"
    arpanet request for comments, no. 680, network information
    center no. 32116. sri international: menlo park (1975).

    august 13, 1982 - 34 - rfc #822

    standard for arpa internet text messages

    nbs. "specification of message format for computer based message
    systems, recommended federal information processing standard."
    national bureau of standards: gaithersburg, maryland
    (october 1981).

    nic. internet protocol transition workbook. network information
    center, sri-international, menlo park, california (march
    1982).

    oppen, d.c. and dalal, y.k. "the clearinghouse: a decentralized
    agent for locating named objects in a distributed environ-
    ment," opd-t8103. xerox office products division: palo alto,
    ca. (october 1981).

    postel, j.b. "assigned numbers," arpanet request for comments,
    no. 820. sri international: menlo park (august 1982).

    postel, j.b. "simple mail transfer protocol," arpanet request
    for comments, no. 821. sri international: menlo park (august
    1982).

    shoch, j.f. "internetwork naming, addressing and routing," in
    proc. 17th ieee computer society international conference, pp.
    72-79, sept. 1978, ieee cat. no. 78 ch 1388-8c.

    su, z. and postel, j. "the domain naming convention for internet
    user applications," arpanet request for comments, no. 819.
    sri international: menlo park (august 1982).

    august 13, 1982 - 35 - rfc #822

    standard for arpa internet text messages

    appendix

    a. examples

    a.1. addresses

    a.1.1. alfred neuman <neuman@bbn-tenexa>

    a.1.2. neuman@bbn-tenexa

    these two "alfred neuman" examples have identical seman-
    tics, as far as the operation of the local host's mail sending
    (distribution) program (also sometimes called its "mailer")
    and the remote host's mail protocol server are concerned. in
    the first example, the "alfred neuman" is ignored by the
    mailer, as "neuman@bbn-tenexa" completely specifies the reci-
    pient. the second example contains no superfluous informa-
    tion, and, again, "neuman@bbn-tenexa" is the intended reci-
    pient.

    note: when the message crosses name-domain boundaries, then
    these specifications must be changed, so as to indicate
    the remainder of the hierarchy, starting with the top
    level.

    a.1.3. "george, ted" <shared@group.arpanet>

    this form might be used to indicate that a single mailbox
    is shared by several users. the quoted string is ignored by
    the originating host's mailer, because "shared@group.arpanet"
    completely specifies the destination mailbox.

    a.1.4. wilt . (the stilt) chamberlain@nba.us

    the "(the stilt)" is a comment, which is not included in
    the destination mailbox address handed to the originating
    system's mailer. the local-part of the address is the string
    "wilt.chamberlain", with no space between the first and second
    words.

    a.1.5. address lists

    gourmets: pompous person <whoziwhatzit@cordon-bleu>,
    childs@wgbh.boston, galloping gourmet@
    ant.down-under (australian national television),
    cheapie@discount-liquors;,
    cruisers: port@portugal, jones@sea;,
    another@somewhere.someorg

    august 13, 1982 - 36 - rfc #822

    standard for arpa internet text messages

    this group list example points out the use of comments and the
    mixing of addresses and groups.

    a.2. originator items

    a.2.1. author-sent

    george jones logs into his host as "jones". he sends
    mail himself.

    from: jones@group.org

    or

    from: george jones <jones@group.org>

    a.2.2. secretary-sent

    george jones logs in as jones on his host. his secre-
    tary, who logs in as secy sends mail for him. replies to the
    mail should go to george.

    from: george jones <jones@group>
    sender: secy@other-group

    a.2.3. secretary-sent, for user of shared directory

    george jones' secretary sends mail for george. replies
    should go to george.

    from: george jones<shared@group.org>
    sender: secy@other-group

    note that there need not be a space between "jones" and the
    "<", but adding a space enhances readability (as is the case
    in other examples.

    a.2.4. committee activity, with one author

    george is a member of a committee. he wishes to have any
    replies to his message go to all committee members.

    from: george jones <jones@host.net>
    sender: jones@host
    reply-to: the committee: jones@host.net,
    smith@other.org,
    doe@somewhere-else;

    note that if george had not included himself in the

    august 13, 1982 - 37 - rfc #822

    standard for arpa internet text messages

    enumeration of the committee, he would not have gotten an
    implicit reply; the presence of the "reply-to" field super-
    sedes the sending of a reply to the person named in the "from"
    field.

    a.2.5. secretary acting as full agent of author

    george jones asks his secretary (secy@host) to send a
    message for him in his capacity as group. he wants his secre-
    tary to handle all replies.

    from: george jones <group@host>
    sender: secy@host
    reply-to: secy@host

    a.2.6. agent for user without online mailbox

    a friend of george's, sarah, is visiting. george's
    secretary sends some mail to a friend of sarah in computer-
    land. replies should go to george, whose mailbox is jones at
    registry.

    from: sarah friendly <secy@registry>
    sender: secy-name <secy@registry>
    reply-to: jones@registry.

    a.2.7. agent for member of a committee

    george's secretary sends out a message which was authored
    jointly by all the members of a committee. note that the name
    of the committee cannot be specified, since <group> names are
    not permitted in the from field.

    from: jones@host,
    smith@other-host,
    doe@somewhere-else
    sender: secy@shost

    august 13, 1982 - 38 - rfc #822

    standard for arpa internet text messages

    a.3. complete headers

    a.3.1. minimum required

    date: 26 aug 76 1429 edt date: 26 aug 76 1429 edt
    from: jones@registry.org or from: jones@registry.org
    bcc: to: smith@registry.org

    note that the "bcc" field may be empty, while the "to" field
    is required to have at least one address.

    a.3.2. using some of the additional fields

    date: 26 aug 76 1430 edt
    from: george jones<group@host>
    sender: secy@shost
    to: "al neuman"@mad-host,
    sam.irving@other-host
    message-id: <some.string@shost>

    a.3.3. about as complex as you're going to get

    date : 27 aug 76 0932 pdt
    from : ken davis <kdavis@this-host.this-net>
    subject : re: the syntax in the rfc
    sender : ksecy@other-host
    reply-to : sam.irving@reg.organization
    to : george jones <group@some-reg.an-org>,
    al.neuman@mad.publisher
    cc : important folk:
    tom softwood <balsa@tree.root>,
    "sam irving"@other-host;,
    standard distribution:
    /main/davis/people/standard@other-host,
    "<jones>standard.dist.3"@tops-20-host>;
    comment : sam is away on business. he asked me to handle
    his mail for him. he'll be able to provide a
    more accurate explanation when he returns
    next week.
    in-reply-to: <some.string@dbm.group>, george's message
    x-special-action: this is a sample of user-defined field-
    names. there could also be a field-name
    "special-action", but its name might later be
    preempted
    message-id: <4231.629.xyzi-what@other-host>

    august 13, 1982 - 39 - rfc #822

    standard for arpa internet text messages

    b. simple field parsing

    some mail-reading software systems may wish to perform only
    minimal processing, ignoring the internal syntax of structured
    field-bodies and treating them the same as unstructured-field-
    bodies. such software will need only to distinguish:

    o header fields from the message body,

    o beginnings of fields from lines which continue fields,

    o field-names from field-contents.

    the abbreviated set of syntactic rules which follows will
    suffice for this purpose. it describes a limited view of mes-
    sages and is a subset of the syntactic rules provided in the main
    part of this specification. one small exception is that the con-
    tents of field-bodies consist only of text:

    b.1. syntax

    message = *field *(crlf *text)

    field = field-name ":" [field-body] crlf

    field-name = 1*<any char, excluding ctls, space, and ":">

    field-body = *text [crlf lwsp-char field-body]

    b.2. semantics

    headers occur before the message body and are terminated by
    a null line (i.e., two contiguous crlfs).

    a line which continues a header field begins with a space or
    htab character, while a line beginning a field starts with a
    printable character which is not a colon.

    a field-name consists of one or more printable characters
    (excluding colon, space, and control-characters). a field-name
    must be contained on one line. upper and lower case are not dis-
    tinguished when comparing field-names.

    august 13, 1982 - 40 - rfc #822

    standard for arpa internet text messages

    c. differences from rfc #733

    the following summarizes the differences between this stan-
    dard and the one specified in arpanet request for comments #733,
    "standard for the format of arpa network text messages". the
    differences are listed in the order of their occurrence in the
    current specification.

    c.1. field definitions

    c.1.1. field names

    these now must be a sequence of printable characters. they
    may not contain any lwsp-chars.

    c.2. lexical tokens

    c.2.1. specials

    the characters period ("."), left-square bracket ("["), and
    right-square bracket ("]") have been added. for presentation
    purposes, and when passing a specification to a system that
    does not conform to this standard, periods are to be contigu-
    ous with their surrounding lexical tokens. no linear-white-
    space is permitted between them. the presence of one lwsp-
    char between other tokens is still directed.

    c.2.2. atom

    atoms may not contain space.

    c.2.3. special text

    ctext and qtext have had backslash ("\") added to the list of
    prohibited characters.

    c.2.4. domains

    the lexical tokens <domain-literal> and <dtext> have been
    added.

    c.3. message specification

    c.3.1. trace

    the "return-path:" and "received:" fields have been specified.

    august 13, 1982 - 41 - rfc #822

    standard for arpa internet text messages

    c.3.2. from

    the "from" field must contain machine-usable addresses (addr-
    spec). multiple addresses may be specified, but named-lists
    (groups) may not.

    c.3.3. resent

    the meta-construct of prefacing field names with the string
    "resent-" has been added, to indicate that a message has been
    forwarded by an intermediate recipient.

    c.3.4. destination

    a message must contain at least one destination address field.
    "to" and "cc" are required to contain at least one address.

    c.3.5. in-reply-to

    the field-body is no longer a comma-separated list, although a
    sequence is still permitted.

    c.3.6. reference

    the field-body is no longer a comma-separated list, although a
    sequence is still permitted.

    c.3.7. encrypted

    a field has been specified that permits senders to indicate
    that the body of a message has been encrypted.

    c.3.8. extension-field

    extension fields are prohibited from beginning with the char-
    acters "x-".

    c.4. date and time specification

    c.4.1. simplification

    fewer optional forms are permitted and the list of three-
    letter time zones has been shortened.

    c.5. address specification

    august 13, 1982 - 42 - rfc #822

    standard for arpa internet text messages

    c.5.1. address

    the use of quoted-string, and the ":"-atom-":" construct, have
    been removed. an address now is either a single mailbox
    reference or is a named list of addresses. the latter indi-
    cates a group distribution.

    c.5.2. groups

    group lists are now required to to have a name. group lists
    may not be nested.

    c.5.3. mailbox

    a mailbox specification may indicate a person's name, as
    before. such a named list no longer may specify multiple
    mailboxes and may not be nested.

    c.5.4. route addressing

    addresses now are taken to be absolute, global specifications,
    independent of transmission paths. the <route> construct has
    been provided, to permit explicit specification of transmis-
    sion path. rfc #733's use of multiple at-signs ("@") was
    intended as a general syntax for indicating routing and/or
    hierarchical addressing. the current standard separates these
    specifications and only one at-sign is permitted.

    c.5.5. at-sign

    the string " at " no longer is used as an address delimiter.
    only at-sign ("@") serves the function.

    c.5.6. domains

    hierarchical, logical name-domains have been added.

    c.6. reserved address

    the local-part "postmaster" has been reserved, so that users can
    be guaranteed at least one valid address at a site.

    august 13, 1982 - 43 - rfc #822

    standard for arpa internet text messages

    d. alphabetical listing of syntax rules

    address = mailbox ; one addressee
    / group ; named list
    addr-spec = local-part "@" domain ; global address
    alpha = <any ascii alphabetic character>
    ; (101-132, 65.- 90.)
    ; (141-172, 97.-122.)
    atom = 1*<any char except specials, space and ctls>
    authentic = "from" ":" mailbox ; single author
    / ( "sender" ":" mailbox ; actual submittor
    "from" ":" 1#mailbox) ; multiple authors
    ; or not sender
    char = <any ascii character> ; ( 0-177, 0.-127.)
    comment = "(" *(ctext / quoted-pair / comment) ")"
    cr = <ascii cr, carriage return> ; ( 15, 13.)
    crlf = cr lf
    ctext = <any char excluding "(", ; => may be folded
    ")", "\" & cr, & including
    linear-white-space>
    ctl = <any ascii control ; ( 0- 37, 0.- 31.)
    character and del> ; ( 177, 127.)
    date = 1*2digit month 2digit ; day month year
    ; e.g. 20 jun 82
    dates = orig-date ; original
    [ resent-date ] ; forwarded
    date-time = [ day "," ] date time ; dd mm yy
    ; hh:mm:ss zzz
    day = "mon" / "tue" / "wed" / "thu"
    / "fri" / "sat" / "sun"
    delimiters = specials / linear-white-space / comment
    destination = "to" ":" 1#address ; primary
    / "resent-to" ":" 1#address
    / "cc" ":" 1#address ; secondary
    / "resent-cc" ":" 1#address
    / "bcc" ":" #address ; blind carbon
    / "resent-bcc" ":" #address
    digit = <any ascii decimal digit> ; ( 60- 71, 48.- 57.)
    domain = sub-domain *("." sub-domain)
    domain-literal = "[" *(dtext / quoted-pair) "]"
    domain-ref = atom ; symbolic reference
    dtext = <any char excluding "[", ; => may be folded
    "]", "\" & cr, & including
    linear-white-space>
    extension-field =
    <any field which is defined in a document
    published as a formal extension to this
    specification; none will have names beginning
    with the string "x-">

    august 13, 1982 - 44 - rfc #822

    standard for arpa internet text messages

    field = field-name ":" [ field-body ] crlf
    fields = dates ; creation time,
    source ; author id & one
    1*destination ; address required
    *optional-field ; others optional
    field-body = field-body-contents
    [crlf lwsp-char field-body]
    field-body-contents =
    <the ascii characters making up the field-body, as
    defined in the following sections, and consisting
    of combinations of atom, quoted-string, and
    specials tokens, or else consisting of texts>
    field-name = 1*<any char, excluding ctls, space, and ":">
    group = phrase ":" [#mailbox] ";"
    hour = 2digit ":" 2digit [":" 2digit]
    ; 00:00:00 - 23:59:59
    htab = <ascii ht, horizontal-tab> ; ( 11, 9.)
    lf = <ascii lf, linefeed> ; ( 12, 10.)
    linear-white-space = 1*([crlf] lwsp-char) ; semantics = space
    ; crlf => folding
    local-part = word *("." word) ; uninterpreted
    ; case-preserved
    lwsp-char = space / htab ; semantics = space
    mailbox = addr-spec ; simple address
    / phrase route-addr ; name & addr-spec
    message = fields *( crlf *text ) ; everything after
    ; first null line
    ; is message body
    month = "jan" / "feb" / "mar" / "apr"
    / "may" / "jun" / "jul" / "aug"
    / "sep" / "oct" / "nov" / "dec"
    msg-id = "<" addr-spec ">" ; unique message id
    optional-field =
    / "message-id" ":" msg-id
    / "resent-message-id" ":" msg-id
    / "in-reply-to" ":" *(phrase / msg-id)
    / "references" ":" *(phrase / msg-id)
    / "keywords" ":" #phrase
    / "subject" ":" *text
    / "comments" ":" *text
    / "encrypted" ":" 1#2word
    / extension-field ; to be defined
    / user-defined-field ; may be pre-empted
    orig-date = "date" ":" date-time
    originator = authentic ; authenticated addr
    [ "reply-to" ":" 1#address] )
    phrase = 1*word ; sequence of words

    august 13, 1982 - 45 - rfc #822

    standard for arpa internet text messages

    qtext = <any char excepting <">, ; => may be folded
    "\" & cr, and including
    linear-white-space>
    quoted-pair = "\" char ; may quote any char
    quoted-string = <"> *(qtext/quoted-pair) <">; regular qtext or
    ; quoted chars.
    received = "received" ":" ; one per relay
    ["from" domain] ; sending host
    ["by" domain] ; receiving host
    ["via" atom] ; physical path
    *("with" atom) ; link/mail protocol
    ["id" msg-id] ; receiver msg id
    ["for" addr-spec] ; initial form
    ";" date-time ; time received

    resent = resent-authentic
    [ "resent-reply-to" ":" 1#address] )
    resent-authentic =
    = "resent-from" ":" mailbox
    / ( "resent-sender" ":" mailbox
    "resent-from" ":" 1#mailbox )
    resent-date = "resent-date" ":" date-time
    return = "return-path" ":" route-addr ; return address
    route = 1#("@" domain) ":" ; path-relative
    route-addr = "<" [route] addr-spec ">"
    source = [ trace ] ; net traversals
    originator ; original mail
    [ resent ] ; forwarded
    space = <ascii sp, space> ; ( 40, 32.)
    specials = "(" / ")" / "<" / ">" / "@" ; must be in quoted-
    / "," / ";" / ":" / "\" / <"> ; string, to use
    / "." / "[" / "]" ; within a word.
    sub-domain = domain-ref / domain-literal
    text = <any char, including bare ; => atoms, specials,
    cr & bare lf, but not ; comments and
    including crlf> ; quoted-strings are
    ; not recognized.
    time = hour zone ; ansi and military
    trace = return ; path to sender
    1*received ; receipt tags
    user-defined-field =
    <any field which has not been defined
    in this specification or published as an
    extension to this specification; names for
    such fields must be unique and may be
    pre-empted by published extensions>
    word = atom / quoted-string

    august 13, 1982 - 46 - rfc #822

    standard for arpa internet text messages

    zone = "ut" / "gmt" ; universal time
    ; north american : ut
    / "est" / "edt" ; eastern: - 5/ - 4
    / "cst" / "cdt" ; central: - 6/ - 5
    / "mst" / "mdt" ; mountain: - 7/ - 6
    / "pst" / "pdt" ; pacific: - 8/ - 7
    / 1alpha ; military: z = ut;
    <"> = <ascii quote mark> ; ( 42, 34.)

    august 13, 1982 - 47 - rfc #822

    comment on rfc 822

    comments about this rfc:

    rfc 822: fw: delivery failure: 553 requested action not taken: mailbox name not allowed... by luca (9/21/2003)
hesabın var mı? giriş yap