2. The Encoding Field
The Encoding field consists of one or more subfields, separated by commas. Each subfield corresponds to a part of the message, in the order of that part's appearance. A subfield consists of a line count and a keyword or a series of nested keywords defining the encoding. The line count is optional in the last subfield.
2.1. Format of the Encoding Field
The format of the Encoding field is:
[ <count> <keyword> [ <keyword> ]* , ]*
[ <count> ] <keyword> [ <keyword> ]*
where:
<count> := a decimal integer
<keyword> := a single alphanumeric token starting with an alpha
2.2.
The line count is a decimal number specifying the number of text lines in the part. Parts are separated by a blank line, which is not included in the count of either the preceding or following part. Blank lines consist only of CR/LF. Count may be zero, it must be non-negative.
It is always possible to determine if the count is present because a count always begins with a digit and a keyword always begins with a letter.
The count is not required on the last or only part. A multi-part message that consists of only one part is thus identical to a single-part message.
2.3.
Keyword defines the encoding type. The keyword is a common single-word name for the encoding type and is not case-sensitive.
Encoding: 107 Text
2.3.1. Nested Keywords
Nested keywords are a series of keywords defining a multi-encoded message part. The encoding keywords may either be an actual series of encoding steps the encoder used to generate the message part or may merely be used to more precisely identify the type of encoding (as in the use of the keyword "Signature").
Nested keywords are parsed and generated from left to right. The order is significant. A decoding application would process the list from left to right, whereas, an encoder would process the Internet message and generate the nested keywords in the reverse order of the actual encoding process.
Encoding: 458 uuencode LZW tar (Unix binary object)
2.4. Comments
Comments enclosed in parentheses may be inserted anywhere in the encoding field. Mail reading systems may pass the comments to their clients. Comments must not be used by mail reading systems for content interpretation. Other parameters defining the type of encoding must be contained within the body portion of the Internet message or be implied by a keyword in the encoding field.