简体   繁体   English

使用JavaMail API的电子邮件主题消息

[英]Email Thread Messages using JavaMail API

How to identify that particular message is email thread and retrieving messages in that thread using JavaMail API? 如何使用JavaMail API识别特定消息是电子邮件线程并在该线程中检索消息?

for email 用于电子邮件

 A replies to B
   B replies to A
      A emails to B (Original Message)

How to fetch information about this thread? 如何获取有关此线程的信息?

Thank you 谢谢

RFC 5256 describes an IMAP extension to support threading. RFC 5256描述了一个IMAP扩展以支持线程。 Not a lot of servers support it, and JavaMail doesn't support it. 没有很多服务器支持它,而JavaMail不支持它。 If you need to implement the threading algorithm yourself in your application, the RFC includes some references that might be helpful. 如果您需要自己在应用程序中实现线程算法,则RFC包括一些可能有用的参考。

Gmail provides a non-standard API to get the "thread ID" for a message. Gmail提供了非标准的API,以获取邮件的“线程ID”。 You can use the JavaMail gimap provider to access this information. 您可以使用JavaMail gimap提供程序来访问此信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM