是“消息ID”吗? 每个收件人的电子邮件标头都是唯一的吗?
电子邮件的消息 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
根据 RFC2822 - Internet Message Format,简短的答案是“消息”对于消息的每个实例,ID应该是唯一的”; 但是,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:
通常,所有收件人都将收到完全相同的消息,包括正文和标头,但途中添加的标头(例如:“已接收”标头)除外。 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.
对于批量邮件,最好每封邮件都是唯一的,邮件 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.