-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wallet #4
Comments
` Network Working Group N. Freed
Status of this Memo This document specifies an Internet standards track protocol for the Abstract STD 11, RFC 822 defines a message representation protocol specifying
These documents are based on earlier work documented in RFC 934, STD The initial document in this set, RFC 2045, specifies the various Freed & Borenstein Standards Track [Page 1] data in Internet mail header fields. The fourth document, RFC 2048, These documents are revisions of RFCs 1521 and 1522, which themselves Table of Contents
Freed & Borenstein Standards Track [Page 2] A. Collected Grammar .................................... 43
The first document in this set, RFC 2045, defines a number of header In general, the top-level media type is used to declare the general Parameters are modifiers of the media subtype, and as such do not MIME's Content-Type header field and media type mechanism has been Freed & Borenstein Standards Track [Page 3] The initial seven standard top-level media type are defined and
The definition of a top-level media type consists of:
The five discrete top-level media types are:
Freed & Borenstein Standards Track [Page 4]
The two composite top-level media types are:
Freed & Borenstein Standards Track [Page 5]
It should be noted that the list of media type values given here may
Five of the seven initial media type values refer to discrete bodies. 4.1. Text Media Type The "text" media type is intended for sending material which is Beyond plain text, there are many formats for representing what might Freed & Borenstein Standards Track [Page 6] 4.1.1. Representation of Line Breaks The canonical form of any MIME "text" subtype MUST always represent a This rule applies regardless of format or character set or sets NOTE: The proper interpretation of line breaks when a body is NOTE: Some protocols defines a maximum line length. E.g. SMTP [RFC- 4.1.2. Charset Parameter A critical parameter that may be specified in the Content-Type field
Unlike some other parameter values, the values of the charset The specification for any future subtypes of "text" must specify Freed & Borenstein Standards Track [Page 7] The charset parameter for subtypes of "text" gives a name of a An initial list of predefined character set names can be found at the Other media types than subtypes of "text" might choose to employ the Note that if the specified character set includes 8-bit characters The default character set, US-ASCII, has been the subject of some NOTE: RFC 821 explicitly specifies "ASCII", and references an earlier Freed & Borenstein Standards Track [Page 8] messages containing characters coded according to other versions of The complete US-ASCII character set is listed in ANSI X3.4- 1986.
NOTE: An enormous proliferation of character sets exist beyond US- The defined charset values are:
Freed & Borenstein Standards Track [Page 9] Characters in the range 128-159 has no assigned meaning in ISO-8859- Part 6 of ISO 8859 (Latin/Arabic alphabet) and part 8 (Latin/Hebrew All of these character sets are used as pure 7bit or 8bit sets The character sets specified above are the ones that were relatively Note that the character set used, if anything other than US- ASCII, No character set name other than those defined above may be used in Implementors are discouraged from defining new character sets unless The "charset" parameter has been defined primarily for the purpose of In general, composition software should always use the "lowest common Freed & Borenstein Standards Track [Page 10] 4.1.3. Plain Subtype The simplest and most important subtype of "text" is "plain". This No other "text" subtype is defined by this document. 4.1.4. Unrecognized Subtypes Unrecognized subtypes of "text" should be treated as subtype "plain" 4.2. Image Media Type A media type of "image" indicates that the body contains an image. The list of "image" subtypes given here is neither exclusive nor Unrecognized subtypes of "image" should at a miniumum be treated as NOTE: Using of a generic-purpose image viewing application this way 4.3. Audio Media Type A media type of "audio" indicates that the body contains audio data. Freed & Borenstein Standards Track [Page 11] The initial subtype of "basic" is specified to meet this requirement The content of the "audio/basic" subtype is single channel audio Unrecognized subtypes of "audio" should at a miniumum be treated as 4.4. Video Media Type A media type of "video" indicates that the body contains a time- Note that although in general this document strongly discourages the Unrecognized subtypes of "video" should at a minumum be treated as 4.5. Application Media Type The "application" media type is to be used for discrete data which do Freed & Borenstein Standards Track [Page 12] For example, a meeting scheduler might define a standard Such applications may be defined as subtypes of the "application" octet-stream, and PostScript. The subtype of "application" will often be either the name or include 4.5.1. Octet-Stream Subtype The "octet-stream" subtype is used to indicate that a body contains
Both of these parameters are optional. An additional parameter, "CONVERSIONS", was defined in RFC 1341 but The recommended action for an implementation that receives an Freed & Borenstein Standards Track [Page 13] To reduce the danger of transmitting rogue programs, it is strongly 4.5.2. PostScript Subtype A media type of "application/postscript" indicates a PostScript PostScript is a registered trademark of Adobe Systems, Inc. Use of The PostScript language definition provides facilities for internal The execution of general-purpose PostScript interpreters entails The remainder of this section outlines some, though probably not all,
Freed & Borenstein Standards Track [Page 14]
Freed & Borenstein Standards Track [Page 15]
Freed & Borenstein Standards Track [Page 16]
4.5.3. Other Application Subtypes It is expected that many other subtypes of "application" will be
The remaining two of the seven initial Content-Type values refer to 5.1. Multipart Media Type In the case of multipart entities, in which one or more different A body part is an entity and hence is NOT to be interpreted as Freed & Borenstein Standards Track [Page 17] a content-type of "text/plain; charset=US-ASCII". The only header fields that have defined meaning for body parts are NOTE: The distinction between an RFC 822 message and a body part is As stated previously, each body part is preceded by a boundary All present and future subtypes of the "multipart" type must use an As stated in the definition of the Content-Transfer-Encoding field Freed & Borenstein Standards Track [Page 18] 5.1.1. Common Syntax This section defines a common syntax for subtypes of "multipart". The Content-Type field for multipart entities requires one parameter, NOTE: The hyphens are for rough compatibility with the earlier RFC WARNING TO IMPLEMENTORS: The grammar for parameters on the Content-
But the following is not valid:
(because of the colon) and must instead be represented as
This Content-Type value indicates that the content consists of one or Freed & Borenstein Standards Track [Page 19]
The boundary delimiter MUST occur at the beginning of a line, i.e., NOTE: The CRLF preceding the boundary delimiter line is conceptually Boundary delimiters must not appear within the encapsulated material, The boundary delimiter line following the last body part is a
NOTE TO IMPLEMENTORS: Boundary string comparisons must compare the There appears to be room for additional information prior to the NOTE: These "preamble" and "epilogue" areas are generally not used Freed & Borenstein Standards Track [Page 20] place to insert an explanatory note for recipients who read the NOTE: Because boundary delimiters must not appear in the body parts As a very simple example, the following multipart message has two
Freed & Borenstein Standards Track [Page 21] The use of a media type of "multipart" in a body part within another The use of the "multipart" media type with only a single body part NOTE: Experience has shown that a "multipart" media type with a The only mandatory global parameter for the "multipart" media type is
Overall, the body of a "multipart" entity may be specified as
Freed & Borenstein Standards Track [Page 22]
IMPORTANT: The free insertion of linear-white-space and RFC 822 NOTE: In certain transport enclaves, RFC 822 restrictions such as Freed & Borenstein Standards Track [Page 23] NOTE: Conspicuously missing from the "multipart" type is a notion of 5.1.2. Handling Nested Messages and Multiparts The "message/rfc822" subtype defined in a subsequent section of this It is essential that such entities be handled correctly when they are 5.1.3. Mixed Subtype The "mixed" subtype of "multipart" is intended for use when the body 5.1.4. Alternative Subtype The "multipart/alternative" type is syntactically identical to Systems should recognize that the content of the various parts are Freed & Borenstein Standards Track [Page 24] best choice is the LAST part of a type supported by the recipient "Multipart/alternative" may be used, for example, to send a message
In this example, users whose mail systems understood the In general, user agents that compose "multipart/alternative" entities Freed & Borenstein Standards Track [Page 25] NOTE: From an implementor's perspective, it might seem more sensible It may be the case that some user agents, if they can recognize more THE SEMANTICS OF CONTENT-ID IN MULTIPART/ALTERNATIVE: Each part of a 5.1.5. Digest Subtype This document defines a "digest" subtype of the "multipart" Content- Note: Though it is possible to specify a Content-Type value for a Freed & Borenstein Standards Track [Page 26] digest, actually doing so is undesireble. The "multipart/digest" A digest in this format might, then, look something like this:
5.1.6. Parallel Subtype This document defines a "parallel" subtype of the "multipart" Freed & Borenstein Standards Track [Page 27] in a parallel entity, the order of body parts is not significant. A common presentation of this type is to display all of the parts 5.1.7. Other Multipart Subtypes Other "multipart" subtypes are expected in the future. MIME 5.2. Message Media Type It is frequently desirable, in sending mail, to encapsulate another NOTE: It has been suggested that subtypes of "message" might be Subtypes of "message" often impose restrictions on what encodings are Mail gateways, relays, and other mail handling agents are commonly 5.2.1. RFC822 Subtype A media type of "message/rfc822" indicates that the body contains an Freed & Borenstein Standards Track [Page 28] It should be noted that, despite the use of the numbers "822", a No encoding other than "7bit", "8bit", or "binary" is permitted for 5.2.2. Partial Subtype The "partial" subtype is defined to allow large entities to be Because data of type "message" may never be encoded in base64 or Freed & Borenstein Standards Track [Page 29] Because some message transfer agents may choose to automatically Three parameters must be specified in the Content-Type field of type Thus, the second piece of a 3-piece message may have either of the
But the third piece MUST specify the total number of fragments:
Note that fragment numbering begins with 1, not 0. When the fragments of an entity broken up in this manner are put 5.2.2.1. Message Fragmentation and Reassembly The semantics of a reassembled partial message must be those of the Freed & Borenstein Standards Track [Page 30] message containing an audio message. That is, the encapsulation of When generating and reassembling the pieces of a "message/partial"
5.2.2.2. Fragmentation and Reassembly Example If an audio message is broken into two pieces, the first piece might
Freed & Borenstein Standards Track [Page 31]
and the second half might look something like this:
Then, when the fragmented message is reassembled, the resulting
The inclusion of a "References" field in the headers of the second Freed & Borenstein Standards Track [Page 32] Finally, it should be noted that the "Encrypted" header field has 5.2.3. External-Body Subtype The external-body subtype indicates that the actual body data are not When a MIME entity is of type "message/external-body", it consists of
The area at the end, which might be called the "phantom body", is The encapsulated headers in ALL "message/external-body" entities MUST Note that, as specified here, the tokens that describe external-body Freed & Borenstein Standards Track [Page 33] If this proves problematic in practice, a new mechanism may be As with "message/partial", MIME entities of type "message/external- 5.2.3.1. General External-Body Parameters The parameters that may be used with any "message/external- body"
Freed & Borenstein Standards Track [Page 34]
The precise semantics of the access-types defined here are described 5.2.3.2. The 'ftp' and 'tftp' Access-Types An access-type of FTP or TFTP indicates that the message body is
In addition, the following parameters are optional:
Freed & Borenstein Standards Track [Page 35] 5.2.3.3. The 'anon-ftp' Access-Type The "anon-ftp" access-type is identical to the "ftp" access type, 5.2.3.4. The 'local-file' Access-Type An access-type of "local-file" indicates that the actual body is
5.2.3.5. The 'mail-server' Access-Type The "mail-server" access-type indicates that the actual body is
Freed & Borenstein Standards Track [Page 36] Because mail servers accept a variety of syntaxes, some of which is Note that MIME does not define a mail server syntax. Rather, it Unlike other access-types, mail-server access is asynchronous and 5.2.3.6. External-Body Security Issues "Message/external-body" entities give rise to two important security
Freed & Borenstein Standards Track [Page 37]
5.2.3.7. Examples and Further Explanations When the external-body mechanism is used in conjunction with the With the emerging possibility of very wide-area file systems, it However, the external-body mechanism is not intended to be limited to Freed & Borenstein Standards Track [Page 38] The embedded message header fields which appear in the body of the
Freed & Borenstein Standards Track [Page 39] Note that in the above examples, the default Content-transfer- Like the "message/partial" type, the "message/external-body" media Note that since the external bodies are not transported along with Note that the body of a message of type "message/external-body" is 5.2.4. Other Message Subtypes MIME implementations must in general treat unrecognized subtypes of Future subtypes of "message" intended for use with email should be
A media type value beginning with the characters "X-" is a private In general, the use of "X-" top-level types is strongly discouraged. Freed & Borenstein Standards Track [Page 40]
The five discrete media types provide provide a standardized
Security issues are discussed in the context of the Freed & Borenstein Standards Track [Page 41]
For more information, the authors of this document are best contacted Ned Freed Phone: +1 818 919 3600 Nathaniel S. Borenstein Phone: +1 201 540 8967 MIME is a result of the work of the Internet Engineering Task Force Gregory M. Vaudreuil EMail: Greg.Vaudreuil@Octel.Com Freed & Borenstein Standards Track [Page 42] Appendix A -- Collected Grammar This appendix contains the complete BNF grammar for all the syntax By itself, however, this grammar is incomplete. It refers by name to
Freed & Borenstein Standards Track [Page 43]
Freed & Borenstein Standards Track [Page 44]` |
BEP: 294 |
bnb-chain/BEPs#294 BEP: 294
Title: BSC Native Staking after BC Fusion
Status: Draft
Type: Standards
Created: 2023-10-13
The text was updated successfully, but these errors were encountered: