电子邮件X标头的最大大小 [英] Maximum size of email X-Headers

查看:112
本文介绍了电子邮件X标头的最大大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在考虑将一些元数据粘贴到电子邮件的X-Header中。这些电子邮件供内部系统使用,并将托管在Exchange服务器上。

We are looking at sticking some metadata into the X-Headers of email messages. These emails are for consumption by internal systems, and will be hosted on an Exchange server.

在X中可以存储的最大数据量是否最大? -标题?

Is there a maximum size for the ammount of data that we can store in an X-Header?

我应该了解一些限制吗,例如特殊字符?

Are there any limitations, such as special characters, that I should know about?

推荐答案

仅美国ASCII字符。

US ASCII characters only.

这由 RFC 822

标准中标头主体的长度没有限制,尽管行长限制,它对标题名称的长度施加了限制。

There is no limit on the length of a header body in the standard, though there is a line length limit, which imposes a limit on the length of the header name.


此规范对$ b的数量有两个限制一行中的$ b个字符。每行字符不得超过
998个字符,并且应不超过78个字符,CRLF不应包括

There are two limits that this specification places on the number of characters in a line. Each line of characters MUST be no more than 998 characters, and SHOULD be no more than 78 characters, excluding the CRLF.

但是,您可以通过折叠将标头主体扩展到单行之外。接收器然后展开行。

You can, however, extend the header body beyond a single line with "folding". The receiver then "unfolds" the lines.


展开的标头字段没有长度限制,因此
可能不确定地长。

An unfolded header field has no length restriction and therefore may be indeterminately long.

标头名称不能折叠,因此标头名称不能超过行数限制。

The header name cannot be folded, so the header name cannot be longer than the line limit.

请注意,即使标准对标头主体的总长度没有限制,实际的实现也可能施加了人为的限制。

Note that even though the standards have no limitation on the total length of the header body, actual implementations may have imposed artificial limitations.

这篇关于电子邮件X标头的最大大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆