本文介绍了有没有办法将电子邮件绑定在一起,而不是“主体”文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过编程方式将电子邮件线程绑在一起,特别是Gmail和雅虎电子邮件对话。有没有办法这样做(电子邮件中包含某种链接或指针或线程ID),或者我是否依靠不更改主题行中的文本的电子邮件?除此之外,这个技巧几乎不起作用,因为许多不相关的线程可能具有相同的主题(例如[无主题]等等)。



/ p>

解决方案

是的。电子邮件包含标题(消息ID),这是该电子邮件的唯一标识符。它本身没有意义,而是另一个标题(在回复中),它指的是它所回复的电子邮件的消息ID。几乎每一个电子邮件客户端都可以通过这些工作,并被许多用户提供您所参考的线程使用。



此外,您可以使用主题加相关时间允许相对排序。



维基百科有一篇伟大的文章,讨论这些,并链接到相关的RFC:


I want to tie email "threads" together programmatically, specifically gmail and yahoo email "conversations." Is there a way to do this (some kind of link or pointer or "thread ID" contained within an email), or am I stuck with relying on the emailers not changing the text in the "Subject" line?

And besides, that trick would be barely functional at all, as many unrelated threads may have the same subject (such as "[no subject]" etc.).

解决方案

Yes. EMails contain a header (message ID), that is a unique identifier for that email. It conveys no meaning itself, but another header (in-reply-to) that refers to the message Id of the email it is in reply to. almost every email client does a passable job with these and is used by many to provide the threading you refer to.

In addition, you can use the subject plus relative times to allow relative ordering.

Wikipedia has a great article that discusses these, and links you off to the relevant RFCs:http://en.wikipedia.org/wiki/Email#Message_format

这篇关于有没有办法将电子邮件绑定在一起,而不是“主体”文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 05:20