jQuery in Action, 3rd edition
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
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: 42965
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.
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: 19973

    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.
    I agree. Here's the link: http://aspose.com/file-tools
    subject: Java API to search mails in MS outlook?
    It's not a secret anymore!