多部分 7 位 MIME 消息是否可以包含 8 位或二进制类型的子消息?

Can a multipart 7bit MIME message contain submessages of type 8bit or binary?

我是MIME新手,不知道以下情况是否成立:

考虑两个嵌套的 MIME 消息:顶级消息的 Content-Transfer-Encoding: 7bit

顶级邮件的正文是嵌套的 MIME 邮件,其内容传输编码为:二进制。内部邮件正文的行仅以 LF 结尾,而不是 CRLF。

我认为这个消息是无效的,因为 7 位的规则说 LF 本身是无效的。然而,一位同事认为这个消息是有效的,因为内部消息的内容传输编码是二进制的,对 CR LF 没有任何限制。

我的观点是,无论任何嵌套消息的内容传输编码如何,顶级消息的整个正文都需要符合其编码(7 位)。

我已经在网上搜索并试图在 MIME 规范中找到答案,但没有找到似乎可以解决这种特殊情况的任何内容。

在 RFC 2045 的第 6.4 节中找到答案:

It should also be noted that, by definition, if a composite entity has a transfer-encoding value such as "7bit", but one of the enclosed entities has a less restrictive value such as "8bit", then either the outer "7bit" labelling is in error, because 8bit data are included, or the inner "8bit" labelling placed an unnecessarily high demand on the transport system because the actual included data were actually 7bit-safe.

所以我例子中的消息是无效的。