Email Thread Messages using JavaMail API

*爱你&永不变心* 提交于 2020-01-15 14:17:13

问题


How to identify that particular message is email thread and retrieving messages in that thread using 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


回答1:


RFC 5256 describes an IMAP extension to support threading. Not a lot of servers support it, and JavaMail doesn't support it. If you need to implement the threading algorithm yourself in your application, the RFC includes some references that might be helpful.

Gmail provides a non-standard API to get the "thread ID" for a message. You can use the JavaMail gimap provider to access this information.



来源:https://stackoverflow.com/questions/21837843/email-thread-messages-using-javamail-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!