开源java库,用于阅读Outlook电子邮件,日历等 [英] Open source java library to read outlook emails, calendar etc

查看:489
本文介绍了开源java库,用于阅读Outlook电子邮件,日历等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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?

现在要求只读取数据并将其显示在jsp页面上。

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

谢谢

推荐答案

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

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.

其他类似的包我知道

  • Jintegra (costs some money)
  • Jinterop (open source too)

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

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

其他方式是使用Exchange也支持的POP3或SMTP协议。有很多软件包支持它们,例如JavaMail。

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.

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

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.

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

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

这篇关于开源java库,用于阅读Outlook电子邮件,日历等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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