简体   繁体   English

使用IMAP或Exchange Web服务从Exchange Server for GWT应用程序获取电子邮件的最快方法?

[英]Fastest way to get E-mail from Exchange Server for GWT application using IMAP or Exchange Web service?

I am trying to get emails from Microsoft Exchange server using EWSJ API which in terms uses Exchange Web Services; 我正在尝试使用EWSJ API从Microsoft Exchange服务器获取电子邮件, 该API使用Exchange Web Services。 but I would like to know; 但我想知道 will it be fast to fetch emails using IMAP? 使用IMAP提取电子邮件会很快吗?

Since we have GWT we cannot directly connect to Exchange from client side in either case; 由于我们拥有GWT,因此无论哪种情况,我们都无法直接从客户端连接到Exchange。 we want to minimize the turn around time of getting emails on server side and then passing those to client side using serialized POJOs. 我们希望最小化在服务器端获取电子邮件,然后使用序列化POJO将电子邮件传递给客户端的周转时间。

From my experience IMAP seems to be the fastest at the moment. 根据我的经验,IMAP似乎是目前最快的。 I used it once to create a small program that could fetch emails from GMail. 我曾经用它来创建一个小程序,可以从GMail提取电子邮件。 A bonus is that you can mark emails as "read" from the IMAP interface. 一个额外的好处是您可以从IMAP界面将电子邮件标记为“已读”。

If I had to choose I'd go for IMAP. 如果必须选择,我会选择IMAP。

Apache Hupa is a subproject of the Apache James project, and it is a webmail client developed with GWT, it uses a server side able to get messages from any IMAP enabled server (it uses the javax.mail api). Apache Hupa是Apache James项目的子项目,它是使用GWT开发的Webmail客户端,它使用服务器端,该服务器端能够从任何启用IMAP的服务器获取消息(它使用javax.mail api)。

Although you can use directly Hupa to read and send emails using your email server (there is a properties file to define imap and smtp parameters), in your case you could get the server side to connect to your servers and use any GWT ajax mechanism to get the messages like Hupa client side does. 尽管您可以直接使用Hupa通过电子邮件服务器读取和发送电子邮件(有一个属性文件定义imap和smtp参数),但在这种情况下,您可以让服务器端连接到服务器并使用任何GWT ajax机制来像Hupa客户端一样获取消息。

Here you have a live demo of Hupa. 在这里,您将获得Hupa的现场演示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM