1
votes

Programatically using Java, is it possible to download and save emails from Exchange Server as .msg files?

If not, are there any formats possible, which can be opened with Outlook

3

3 Answers

1
votes

The solutions received were commercial options which for me is out of scope right now. The second part in my question was if I can save in any other format. I have figured out that I can save them as .eml file which also can be opened in Outlook. This will solve the problem for me.

1
votes

You can use Outlook Object Model (see MailItem.SaveAs) if you have a local Outlook profile configured to access the Exchange mailbox in question.

You can also use Redemption (I am its author) to dynamically connect to an Exchange mailbox (RDOSession.LogonExchangeMailbox), iterate through the messages and save them in the MSG format (RDOMail.SaveAs).