Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open source java library to read outlook emails, calendar etc

Tags:

java

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?

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

Thanks

like image 647
user509755 Avatar asked Dec 01 '10 13:12

user509755


1 Answers

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.

Other similar packages I know are

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

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

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.

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.

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

like image 103
AlexR Avatar answered Nov 01 '22 19:11

AlexR