Mulesoft - 可以在cloudhub上使用IMAP连接器

时间:2015-10-29 14:28:41

标签: email imap cloudhub anypoint-studio

我使用IMAP连接器创建了一个Mulesoft项目来检索电子邮件。它通过Anypoint Studio在本地运行良好。当我尝试将其部署到cloudhub时,我收到以下错误:

 Your application has failed with exception com.mulesoft.mmc.agent.v3.dto.DeploymentException: Failed to start inbound endpoint "endpoint.imaps.jwu.platform.gmail.com"

我理解与cloudhub的入站连接的限制。我的问题是,有没有办法在cloudhub上使用IMAP连接器?或者我最好切换到POP连接器?

2 个答案:

答案 0 :(得分:0)

请尝试我已在cloudhub中成功部署的此流程

<imaps:connector name="IMAP" validateConnections="true" checkFrequency="1" doc:name="IMAP" deleteReadMessages="false">
        <imaps:tls-client path="*" storePassword="*"/>
        <imaps:tls-trust-store path="*" storePassword="*"/>
    </imaps:connector>
    <flow name="imapFlow">
        <imaps:inbound-endpoint host="imap.gmail.com" port="993" user="example%40gmail.com" password="password" connector-ref="IMAP" responseTimeout="10000" doc:name="IMAP"/>
        <logger message="#[payload]@@@@@@@@@@@@@@" level="INFO" doc:name="Logger"/>
    </flow>
</mule>

答案 1 :(得分:0)

是IMAP连接器可以在cloudhub中使用。

IMAP连接器仅可配置为具有单向交换模式的入站端点(也称为消息源),它实现了一个传输通道,使您的Mule应用程序能够从IMAP电子邮件服务器检索电子邮件。 / p>

IMAP类似于POP3,但IMAP支持在线和离线模式。例如,IMAP用户可以在IMAP服务器上保留电子邮件,直到他们明确删除它们为止。像POP3一样,IMAP无法发送电子邮件;为此,您必须实现SMTP出站端点。

对于安全传输通道(TLS或SSL),您可以指定IMAPS协议。

相关问题