ule子-接收电子邮件不起作用 [英] Mule - Receive email not working

查看:111
本文介绍了ule子-接收电子邮件不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题以前曾提出过,但是直到现在我才真正找到解决这个问题的方法.

I know this question has been raised before, but I couldn't really find solution to this issue till now.

我正试图从Outlook交换中获取消息以进行解析.

I am trying to get messages from outlook exchange for parsing.

我有一个非常简单的流程来从Outlook中获取邮件,它似乎可以部分工作(它可以正确验证,还可以检查所有必要的文件夹,但不会从IMAP服务器中检索邮件).

I have a very simple flow to get the mails from outlook and it seems to work partially (It authenticates properly, and also checks all the necessary folders but it doesn't retrieve the mail from IMAP server).

这是我正在使用的流程...

This is the flow I am using...

 <imap:connector name="imapConnector" checkFrequency="500" 
        backupEnabled="true" backupFolder="inbox.backup"
        mailboxFolder="INBOX" moveToFolder="processed" deleteReadMessages="false" 
        defaultProcessMessageAction="SEEN" />
    <flow name="testFlow" doc:name="testFlow">
        <imap:inbound-endpoint host="ip"
            port="143" user="username" password="pwd" doc:name="IMAP" />
        <file:outbound-endpoint path="C:\"
            responseTimeout="1000" doc:name="File" />
    </flow>

该应用程序运行似乎没有任何错误,但是它没有检索到任何电子邮件,而是像下面这样永远坐在那里...有人可以帮助我吗?

The app seems to run without any errors, but its not retrieving any emails instead just sits there forever as below... Can someone help me?

**********************************************************************
* Application: test                                                  *
* OS encoding: Cp1252, Mule encoding: UTF-8                          *
*                                                                    *
* Agents Running:                                                    *
*   JMX Agent                                                        *
**********************************************************************
INFO  2013-02-06 18:26:45,814 [main] org.mule.module.launcher.DeploymentService: 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Started app 'test'                                       +

++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

推荐答案

关于使用JavaMail连接到MS Exchange似乎有很多文献,这是Mule在幕后使用的东西.例如阅读:

There seem to be quite some literature around connecting to MS Exchange with JavaMail, which is what Mule uses behind the scene. Read for example:

  • http://kenai.com/projects/javamail/pages/Exchange
  • http://www.oracle.com/technetwork/java/faq-135477.html#Exchange-login
  • Java Mail API Cannot Read Inbox

因此,请确保您的用户名格式正确,并且也可以使用收件箱"代替收件箱"(不确定是否有帮助,但在示例中,人们会这样做).

So be sure your username is correctly formatted and also maybe use "Inbox" instead of "INBOX" (not sure it helps, but in examples, people do that).

这篇关于ule子-接收电子邮件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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