wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes Java API to search mails in MS outlook? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java API to search mails in MS outlook?" Watch "Java API to search mails in MS outlook?" New topic

Java API to search mails in MS outlook?

Manoj Maniraj
Ranch Hand

Joined: Mar 25, 2009
Posts: 38
Hi guys,

I am in need of Java API to read and search emails in microsoft outlook from java. Please let me know if there are any API that suits my needs..


Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39576
Apache POI has some basic code to access MSG files, but I think Outlook uses .ost and .pst files, for the most part, so I'm not sure if that helps.

Ping & DNS - updated with new look and Ping home screen widget
Saqib Razzaq

Joined: May 05, 2011
Posts: 2
If you want a commercial API for reading Outlook PST files in Java and read/extract emails in MSG format, you may look at our Aspose.Network for Java product. Please see the below articles for reference that contain documentation and sample code for reading PST and MSG files.

  • Get the Messages Information from the Outlook PST File
  • Extract Messages from Outlook PST File and Save to Disk or Stream in MSG Format
  • Parsing Outlook Message Files

  • Disclosure: I work as Technical Evangelist at Aspose.
    Paul Clapham

    Joined: Oct 14, 2005
    Posts: 18155

    If "searching in Outlook" can be read as "searching in the Exchange server which Outlook is connected to" then JavaMail would be the appropriate tool.
    Don't get me started about those stupid light bulbs.
    subject: Java API to search mails in MS outlook?
    Similar Threads
    Outlook integration
    outlook express address book accessing
    How to connect java with microsoft outlook
    Outlook Meeting Request via Java API?
    Reading .pst file