[8] 
[[MIME]] は [[RFC 822メッセージ]]形式の[[ヘッダー]]と[[本体]]の構造を持っています。
[[ヘッダー部]]では[DFN[MIMEヘッダー]]が使えます。


*MIME 頭欄 + α の一覧

[1] [[MIME]] [[実体]]の頭欄として仕様・実装・使用例が見つかっているものの一覧:
→ [[インターネットメールヘッダーの一覧]]参照

- [IANAREG] [CITE[IANA | MIME Media Types]]
<http://www.iana.org/assignments/message-headers/message-header-index.html>
-- Permanent: [Q[Page updated 07-October-2004]]
-- Provisional: [Q[Page updated 06-Oct-2004]]
- [[RFC 4021]] [CITE[Registration of Mail and MIME Header Fields]]
<urn:ietf:rfc:4021>

[2] [[Redmine]] は [CODE(MIME)@en[[[Date:]]]] や
[CODE(MIME)@en[[[MIME-Version:]]]] を [[MIME]] [[本体部分]]に含めるようです。

[4]
[FIG(short list)[
- [CODE(MIME)@en[[[Content-Answering-CID:]]]]
- [CODE[Content-features:]]
- [CODE(MIME)@en[[[Content-Range:]]]]
- [CODE(MIME)@en[[[Content-Script:]]]]
]FIG]

* RFC 2045 における定義

[FIG(quote)[ [5] 3.  MIME Header Fields

>
MIME defines a number of new RFC 822 header fields that are used to
describe the content of a MIME entity.  These header fields occur in
at least two contexts:

和訳

>
MIME は MIME 実体の内容を説明するのに使う幾つかの新しい 
RFC 822 頭領域を定義します。これらの頭領域は少なくても次の二つの場面で
使うことが出来ます。

>
=As part of a regular RFC 822 message header.
=In a MIME body part header within a multipart construct.

和訳

>
=普通の RFC 822 メッセージ頭の一部として。
=多部分構造中の MIME 本文部分頭の中で。

>
The formal definition of these header fields is as follows:

和訳

>
これらの頭領域の正式な定義は次の通りです。

>
     entity-headers := [ content CRLF ]
                       [ encoding CRLF ]
                       [ id CRLF ]
                       [ description CRLF ]
                       *( MIME-extension-field CRLF )
>
     MIME-message-headers := entity-headers
                             fields
                             version CRLF
                             ; The ordering of the header
                             ; fields implied by this BNF
                             ; definition should be ignored.

コメント和訳

>
この BNF 定義に見られる頭領域の順序は無視するべきです。

>
     MIME-part-headers := entity-headers
                          [ fields ]
                          ; Any field not beginning with
                          ; "content-" can have no defined
                          ; meaning and may be ignored.
                          ; The ordering of the header
                          ; fields implied by this BNF
                          ; definition should be ignored.

コメント和訳

>
"content-" で始まらないいかなる領域も意味は定義され得ず、
無視して構いません。この BNF 定義に見られる頭領域の順序は無視するべきです。

>
The syntax of the various specific MIME header fields will be
described in the following sections.

和訳

>
MIME 頭領域を規定する各種構文は次節以降で説明します。
]FIG]

-4. [[MIME-Version]]
-5. [[Content-Type]]
-6. [[Content-Transfer-Encoding]]
-7. [[Content-ID]]
-8. [[Content-Description

[FIG(quote)[ [6] 9.  Additional MIME Header Fields

>
Future documents may elect to define additional MIME header fields
for various purposes.  Any new header field that further describes
the content of a message should begin with the string "Content-" to
allow such fields which appear in a message header to be
distinguished from ordinary RFC 822 message header fields.

和訳

>
将来の文書が各種目的に追加の MIME 頭領域を定義することを選ぶかもしれません。
メッセージの内容を更に説明する新しい頭領域は文字列 "Content-"
で始めて、メッセージ頭に現れたこの領域を普通の RFC 822
メッセージ頭領域と区別出来るようにするべきです。

>
     MIME-extension-field := <Any RFC 822 header field which
                              begins with the string
                              "Content-">

右辺和訳

>
<文字列 "Content-" で始まる RFC 822 頭欄>
]FIG]

[7] 将来というか、 RFC 2045 の時点では既に幾つかの文書が定義してます。

* 文脈

[9] 
[[MIMEヘッダー]]は、
[CODE[multipart/[VAR[*]]]] の[[本体部分]]のような純粋な
[[MIMEメッセージ]]で使えます。

[10] 
[[MIMEヘッダー]]は、
[[インターネットメール]]用[[RFC 822メッセージ]]のような、
[[MIME]]
を使える[[メッセージ]]形式において、
当該メッセージ形式の専用の[[ヘッダー]]と混在して使えます。



*メモ

[11] [CITE@en[RFC 4249: Implementer-Friendly Specification of Message and MIME-Part Header Fields and Field Components]], [TIME[2021-08-17T11:55:17.000Z]] <https://www.rfc-editor.org/rfc/rfc4249.html#section-3.1.2.1.1>


[3] [CITE@en[RFC 6857 - Post-Delivery Message Downgrading for Internationalized Email Messages]]
( ([TIME[2013-07-24 10:18:10 +09:00]] 版))
<http://tools.ietf.org/html/rfc6857#section-4.1>
