Mule ESB:checkFrequency在IMAP连接器上不工作?

Mule ESB:checkFrequency在IMAP连接器上不工作?,mule,mule-studio,Mule,Mule Studio,我正在使用IMAP连接器连接到收件箱并下载邮件。我将checkFrequency参数设置为30000(默认值为60000)。我也尝试过其他价值观。使用下面的确切代码,如果我启动流,它就不会自己检查电子邮件。即使是在第一次启动时,也不是在30秒后。我能让它工作的唯一方法就是简单地在XML中添加一个空白并再次保存。这会导致连接器连接并下载电子邮件。我错过了什么 <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:doc="http:

我正在使用IMAP连接器连接到收件箱并下载邮件。我将checkFrequency参数设置为30000(默认值为60000)。我也尝试过其他价值观。使用下面的确切代码,如果我启动流,它就不会自己检查电子邮件。即使是在第一次启动时,也不是在30秒后。我能让它工作的唯一方法就是简单地在XML中添加一个空白并再次保存。这会导致连接器连接并下载电子邮件。我错过了什么

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns="http://www.mulesoft.org/schema/mule/core"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:spring="http://www.springframework.org/schema/beans"
       xmlns:imap="http://www.mulesoft.org/schema/mule/imap"
       xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
       xmlns:file="http://www.mulesoft.org/schema/mule/file"
       xmlns:email="http://www.mulesoft.org/schema/mule/email"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.6/mule.xsd
http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/3.6/mule-file.xsd
http://www.mulesoft.org/schema/mule/imap http://www.mulesoft.org/schema/mule/imap/3.6/mule-imap.xsd
http://www.mulesoft.org/schema/mule/email http://www.mulesoft.org/schema/mule/email/3.6/mule-email.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/3.6/mule-vm.xsd
http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd" version="EE-3.6.0">

    <imap:connector name="imapConnector" checkFrequency="30000" doc:name="IMAP" /> 

    <expression-transformer name="returnAttachments" doc:name="Expression">
        <return-argument evaluator="attachments-list" expression="*"/>
    </expression-transformer>

    <file:connector name="fileName" doc:name="File"> 
        <file:expression-filename-parser/> 
    </file:connector>
    <flow name="incoming-orders">
        <imap:inbound-endpoint host="server" port="143" user="user" password="pass" disableTransportTransformer="true" transformer-refs="returnAttachments" doc:name="IMAP" responseTimeout="10000">
        </imap:inbound-endpoint>
        <foreach doc:name="For Each" collection="#[message.inboundAttachments]"  >
            <expression-component doc:name="Expression"><![CDATA[key == "test.xml"]]></expression-component>
            <file:outbound-endpoint path="c:\Mule\in" outputPattern="#[key]" doc:name="File" responseTimeout="10000">
                <expression-transformer> 
                    <return-argument expression="payload.inputStream" evaluator="groovy"/> 
                </expression-transformer>
            </file:outbound-endpoint>
        </foreach>
    </flow>
</mule>

您已经创建了一个未使用的
imapConnector
配置

将最后一个属性添加到配置中

<imap:inbound-endpoint host="server" port="143" user="user" password="pass" disableTransportTransformer="true" transformer-refs="returnAttachments" doc:name="IMAP" responseTimeout="10000" connector-ref="imapConnector">

将以下属性添加到连接器定义中:


mailboxFolder=“INBOX”

虽然这是一个明显的问题,但它没有解决该问题。我是否忽略了其他简单的内容?是否可以将其设置为0,这样它就不会重复检查,然后将其放入轮询范围?我真的需要这个工作。我甚至通过GUI为IMAP创建了一个新的全局连接器,它仍然做同样的事情。实际上它已经被使用了。当给定传输只有一个全局连接器时,Mule会将其用于该传输的端点。