使用JavaMail API的电子邮件主题消息 [英] Email Thread Messages using JavaMail API

查看:191
本文介绍了使用JavaMail API的电子邮件主题消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用JavaMail API,以确定该线程特定的信息是电子邮件线程,并检索邮件?

How to identify that particular message is email thread and retrieving messages in that thread using JavaMail API?

电子邮件

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

如何获取这个线程的信息?

How to fetch information about this thread?

感谢您

推荐答案

RFC 5256 描述了一个IMAP扩展支持线程。不是很多服务器支持它,JavaMail的不支持它。如果你需要实现自己在应用程序中的线程算法,RFC包括一些参考,可能会有所帮助。

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中提供了一个非标准的API来获取的线程ID的消息。您可以使用的JavaMail GIMAP提供商访问这些信息。

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.

这篇关于使用JavaMail API的电子邮件主题消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆