是“消息ID”吗? 每个收件人的电子邮件标头都是唯一的吗?

发布于 2024-07-18 06:16:35 字数 126 浏览 3 评论 0原文

电子邮件的消息 ID 标头有多独特? 如果我向两个人发送一封电子邮件,两人的消息 ID 是否相同? 或者它们会有所不同吗?

(这是假设没有人在做任何有趣的事情。我知道对于垃圾邮件,所有规则都会消失......)

How unique is the Message ID header of an email? If I address an email to two people, will the both have the same Message ID? Or will they be different?

(This is assuming nobody's doing any funny business. I know that with spam, all the rules go out the window...)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

赏烟花じ飞满天 2024-07-25 06:16:35

根据 RFC2822 - Internet Message Format,简短的答案是“消息”对于消息的每个实例,ID应该是唯一的”; 但是,MESSAGE-ID 字段被认为是可选的,并且 MESSAGE-ID 字段的创建方式取决于服务器。 引述如下:

“消息 ID:”字段提供唯一的消息标识符,该标识符引用特定消息的特定版本。 消息标识符的唯一性由生成它的主机保证(见下文)。 该消息标识符旨在是机器可读的,但不一定对人类有意义。 消息标识符恰好属于特定消息的一个实例; 消息的后续修订均会收到新的消息标识符。 注意:在许多情况下,消息都会被“更改”,但这些更改并不构成该消息的新实例,因此该消息不会获得新的消息标识符。 例如,当消息被引入传输系统时,它们通常会添加额外的头字段,例如跟踪字段(第 3.6.7 节中描述)和重发字段(第 3.6.6 节中描述)。 添加此类头字段不会改变消息的身份,因此保留原始的“Message-ID:”字段。 在所有情况下,决定“Message-ID:”字段是否更改的是消息发送者希望传达的含义(即,这是相同的消息还是不同的消息),而不是任何特定的语法消息中出现(或未出现)的差异。

According to RFC2822 - Internet Message Format, the short answer is that the "Message ID should be unique for each instance of the message"; however, the MESSAGE-ID field is considered optional and how the MESSAGE-ID field is created is up to the server. Quoted below:

The "Message-ID:" field provides a unique message identifier that refers to a particular version of a particular message. The uniqueness of the message identifier is guaranteed by the host that generates it (see below). This message identifier is intended to be machine readable and not necessarily meaningful to humans. A message identifier pertains to exactly one instantiation of a particular message; subsequent revisions to the message each receive new message identifiers. Note: There are many instances when messages are "changed", but those changes do not constitute a new instantiation of that message, and therefore the message would not get a new message identifier. For example, when messages are introduced into the transport system, they are often prepended with additional header fields such as trace fields (described in section 3.6.7) and resent fields (described in section 3.6.6). The addition of such header fields does not change the identity of the message and therefore the original "Message-ID:" field is retained. In all cases, it is the meaning that the sender of the message wishes to convey (i.e., whether this is the same message or a different message) that determines whether or not the "Message-ID:" field changes, not any particular syntactic difference that appears (or does not appear) in the message.

迷爱 2024-07-25 06:16:35

通常,所有收件人都将收到完全相同的消息,包括正文和标头,但途中添加的标头(例如:“已接收”标头)除外。 Message-ID 标头由发送者生成,因此所有接收者都应该看到相同的 Message-ID。

Typically, all recipients will receive exactly the same message, both body and headers, with the exception of headers that are added en-route (eg: "Received" headers). The Message-ID header is generated by the sender, so all recipients should see the same Message-ID.

鯉魚旗 2024-07-25 06:16:35

对于批量邮件,最好每封邮件都是唯一的,邮件 ID 可能是您从垃圾邮件通知或退回邮件中获得的唯一信息,因此每封邮件都应该是唯一的。

for bulk mailing, it's better to be unique for each mail, the message id may be the only information your get back from spam notifications or bounces so it should be unique for each message.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文