用于阅读 Outlook 电子邮件、日历等的开源 Java 库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4324856/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-14 15:55:00  来源:igfitidea点击:

Open source java library to read outlook emails, calendar etc

java

提问by user509755

I am looking for an open source java lib to read emails, calendar, contacts from Microsoft outlook. Do you know any of these lib or workaround?

我正在寻找一个开源 java lib 来读取来自 Microsoft Outlook 的电子邮件、日历和联系人。你知道这些库或解决方法吗?

Right now the requirement is to only read the data and present it on jsp page.

现在的要求是只读取数据并将其呈现在jsp页面上。

Thanks

谢谢

采纳答案by AlexR

If you are running on Windows you can probably use JaWin. It is an open source library that wraps COM object and provides you a Java API to access them. As far as I remember its distribution contains example of how to connect to MS Exchange server.

如果您在 Windows 上运行,您可能可以使用JaWin。它是一个开源库,它封装了 COM 对象并为您提供了一个 Java API 来访问它们。据我所知,它的发行版包含如何连接到 MS Exchange 服务器的示例。

Other similar packages I know are

我知道的其他类似软件包是

Both libraries implement DCOM protocol in Java, so you can run application that uses them on any platform and connect to exchange server.

这两个库都在 Java 中实现了 DCOM 协议,因此您可以在任何平台上运行使用它们的应用程序并连接到交换服务器。

Other way is to use POP3 or SMTP protocol also supported by Exchange. There are a lot of packages that support them, e.g. JavaMail.

另一种方法是使用 Exchange 也支持的 POP3 或 SMTP 协议。有很多支持它们的软件包,例如 JavaMail。

And the last way: if your application is running on client side, i.e. on the client's computer it can parse files created by outlook itself. I do not remember where these files are stored but I remember that many years ago I have discovered the issue and saw that all emails are stored in file system in clear text format.

最后一种方式:如果您的应用程序在客户端运行,即在客户端的计算机上,它可以解析由 Outlook 本身创建的文件。我不记得这些文件存储在哪里,但我记得很多年前我发现了这个问题,并看到所有电子邮件都以明文格式存储在文件系统中。

EDIT: Recently I found out JACOB: other library that uses JNI (like JaWin).

编辑:最近我发现了JACOB:其他使用 JNI 的库(如 JaWin)。