通过localhost上的Java EE读取电子邮件Outlook [英] Read email outlook via Java EE on localhost

查看:378
本文介绍了通过localhost上的Java EE读取电子邮件Outlook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个包含3个虚拟机的应用程序,并使用Nagios监控所有这些计算机。

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

我使用nagios通过postfix将电子邮件发送到localhost上的Outlook我用Java EE应用程序获取了所有邮件并将它们放在我的数据库中。

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.

如何从Java EE中提取我的所有电子邮件并将其放入我的数据库?

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

我在postfix中使用IMAP将电子邮件发送到我本地主机上的Outlook

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

我有Outlook版本2007和Windows 7

I have Outlook version 2007 and Windows 7

Cordialement

Cordialement

推荐答案

首先,没有任何名为JEE的内容。正确的名称是Java EE。

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

其次,Outlook是一个电子邮件客户端。 Exchange是电子邮件服务器。如果邮件位于Exchange服务器上,并且Exchange服务器配置为允许IMAP访问,则可以使用JavaMail读取服务器上的所有邮件。从 JavaMail FAQ 开始。

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.

如果消息确实存在于您的桌面/笔记本电脑上,存储在Outlook客户端中,例如,因为您已将Outlook配置为下载所有消息,请将其存储在本地,然后将其从服务器中删除那么你有一个更难的问题。 Outlook以Microsoft专有格式在本地存储消息,JavaMail不直接支持该格式。有一些第三方工具可以帮助阅读此类消息。

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.

这篇关于通过localhost上的Java EE读取电子邮件Outlook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆