Read email outlook via Java EE on localhost

2019-03-04 23:06发布

I created an application with 3 virtual machines and I supervise all these machines with Nagios.

I use nagios to send me email to my Outlook on localhost with postfix and I went to got all mail with a Java EE application and put them in my database.

How can I extract all my email from MS outlook with Java EE and put them in my database?

I use IMAP in postfix to send email to Outlook on my localhost

I have Outlook version 2007 and Windows 7

Cordialement

1条回答
Luminary・发光体
2楼-- · 2019-03-05 00:04

First, there is nothing named "JEE". The correct name is "Java EE".

Second, Outlook is an email client. Exchange is the email server. If the messages are on the Exchange server, and the Exchange server is configured to allow IMAP access, you can use JavaMail to read all the messages on the server. Start with the JavaMail FAQ.

If the messages are really on your desktop/laptop machine, stored in the Outlook client, e.g., because you've configured Outlook to download all the messages, store them locally, and remove them from the server, then you have a much harder problem. Outlook stores the messages locally in a Microsoft proprietary format that JavaMail doesn't directly support. There are some third party tools to help read such messages.

查看更多
登录 后发表回答