Mule ESB 3.3 - 接收IMAPS邮件(Gmail) [英] Mule ESB 3.3 - Receiving IMAPS mail (Gmail)

查看:150
本文介绍了Mule ESB 3.3 - 接收IMAPS邮件(Gmail)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都有通过Gmail从IMAP over SSL(IMAPS)阅读邮件的工作示例?



我收集了一些信息,但没有成功:

>



这个东西就在那儿什么也没做。



这是我的流程:

 < mule> 
< imaps:connector
name =imapsConnector
checkFrequency =5000
backupEnabled =true
mailboxFolder =INBOX
deleteReadMessages =false
doc:name =IMAP>
< imaps:tls-client />
< imaps:tls-trust-store />
< / imaps:connector>

< expression-transformer
name =returnAttachments
doc:name =Expression>
<返回参数
evaluateator =附件列表
表达式=*。csv/>
< / expression-transformer>

< flow
name =GmailImapsFetch
doc:name =Flow1_IMAP_fetch>
< imaps:inbound-endpoint
user =your_username%40gmail.com
password =your_password
host =imap.googlemail.com

disableTransportTransformer =true
doc:name =IMAP
connector-ref =imapsConnector$ b $转换器参考=返回附件 b responseTimeout =10000/>
<! - < collection-splitter doc:name =Collection Splitter/> - >
< logger message =#[payload]/>
path =/ tmp / gmail - #[function:datestamp] .dat
doc:name =File>
< expression-transformer>
< return-argument
表达式=payload.inputStream
evaluateator =groovy/>
< / expression-transformer>
< / file:outbound-endpoint>

< / flow>
< / mule>

Mule Studio(1.3.2)抱怨XML格式不正确(它不喜欢表达式 -

任何人都有这个运行?



谢谢。



-



记录:

  +++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++ 
+启动app'mulelab'+
++++++++++++++++ +++++++++++++++++++++++++++++++++++
[23 -01-13 11:07:01] [DEBUG]应用生命周期阶段:org.mule.lifecycle.phases.MuleContextStartPhase@14b03ea注册表:DefaultRegistryBroker
[23-01-13 11:07:01] [DEBUG ]生命周期阶段:启动对象:org.mule.util.queue.TransactionalQueueManager@63edf84f
[23-01-13 11:07:01] [INFO]启动ResourceManager
[23-01-13 11:07:01] [DEBUG]恢复检索0对象
[23-01-13 11:07:01] [DEBUG]恢复检索0对象
[23-01-13 11:07: 01] [DEBUG]恢复检索0个对象
[23-01-13 11:07:01] [INFO]已启动ResourceManager
[23-01-13 11:07:01] [DEBUG]生命周期阶段:启动对象:FileConnector
。 。 。
[23-01-13 11:07:01] [DEBUG]生命周期阶段:启动对象:ImapsConnector
{
name = imapsConnector
lifecycle = initialise
this = 4bb4df9c
numberOfConcurrentTransactedReceivers = 4
createMultipleTransactedReceivers = true
connected = false
supportedProtocols = [imaps]
serviceOverrides =< none>
}

[23-01-13 11:07:01] [DEBUG]连接:ImapsConnector
{
name = imapsConnector
lifecycle = initialise
this = 4bb4df9c
numberOfConcurrentTransactedReceivers = 4
createMultipleTransactedReceivers = true
connected = false
supportedProtocols = [imaps]
serviceOverrides =< none>
}

[23-01-13 11:07:01] [INFO] Connected:ImapsConnector
{
name = imapsConnector
lifecycle = initialise
this = 4bb4df9c
numberOfConcurrentTransactedReceivers = 4
createMultipleTransactedReceivers = true
connected = true
supportedProtocols = [imaps]
serviceOverrides =< none>
}

[23-01-13 11:07:01] [INFO] Starting:ImapsConnector
{
name = imapsConnector
lifecycle = initialise
this = 4bb4df9c
numberOfConcurrentTransactedReceivers = 4
createMultipleTransactedReceivers = true
connected = true
supportedProtocols = [imaps]
serviceOverrides =< none>
}

[23-01-13 11:07:01] [INFO]启动连接器:imapsConnector
[23-01-13 11:07:01] [DEBUG ]成功连接到ImapsConnector
{
name = imapsConnector
lifecycle = initialise
this = 4bb4df9c
numberOfConcurrentTransactedReceivers = 4
createMultipleTransactedReceivers = true
connected = false
supportedProtocols = [imaps]
serviceOverrides =<无>
}

[23-01-13 11:07:01] [DEBUG]生命周期阶段:启动对象:org.mule.transport.servlet.jetty.JettyWebappServerAgent@26945b95
[23-01-13 11:07:01] [DEBUG]生命周期阶段:对象开始:org.mule.module.management.agent.JmxAgent@320f6398
[23-01-13 11:07 :01] [DEBUG]生命周期阶段:启动对象:SedaModel {_muleSystemModel}
[23-01-13 11:07:01] [INFO]启动模式:_muleSystemModel
[23-01-13生命周期阶段:为对象启动:Flow {GmailImapsFetch}
[23-01-13 11:07:01] [INFO]启动流程:GmailImapsFetch
[23- 01-13 11:07:01] [INFO]正在启动服务:GmailImapsFetch.stage1
[23-01-13 11:07:01] [INFO]注册侦听器:端点上的GmailImapsFetchUri:imaps:// your_username% 40gmail.com:****@imap.googlemail.com:993
[23-01-13 11:07:01] [INFO]加载默认入站转换器:org.mule.transport.email.transformers。 EmailMessageToString
[23-01-13 11:07:01] [DEBUG]将变压器名称设置为:Emai lMessageToString#1868577756
[23-01-13 11:07:01] [INFO]初始化:'null'。对象是:RetrieveMessageReceiver
[23-01-13 11:07:01] [DEBUG] Connecting:RetrieveMessageReceiver {this = 22fe135d,receiverKey=your_username@gmail.com,endpoint = imaps://your_username%40gmail.com :**** @ imap.googlemail.com:993}
[23-01-13 11:07:01] [INFO]连接可群集消息接收器
[23-01-13 11:07 :01] [DEBUG]连接器上没有设置验证器:imapsConnector;使用默认值。
[23-01-13 11:07:01] [INFO]默认mule.email.imaps信任商店客户端密钥存储
[23-01-13 11:07:01] [DEBUG] MuleSession的本地属性=============
[23-01-13 11:07:01] [DEBUG] mail.imaps.ssl:true
[23-01 -13 11:07:01] [DEBUG] mail.debug:true
[23-01-13 11:07:01] [DEBUG] mail.imaps.socketFactory.class:org.mule.transport.email .ImapsSocketFactory
[23-01-13 11:07:01] [DEBUG] mail.imaps.socketFactory.fallback:false
[23-01-13 11:07:01] [DEBUG] mail .imap.host:imap.googlemail.com
[23-01-13 11:07:01] [DEBUG] mail.imap.auth:true
[23-01-13 11:07: 01] [DEBUG] mail.imap.socketFactory.port:993
[23-01-13 11:07:01] [DEBUG] mail.imap.rsetbeforequit:true
[23-01-13 11:07:01] [DEBUG]跳过0
[23-01-13 11:07:01] [DEBUG]系统全局属性=============
[23-01-13 11:07:01] [DEBUG] mule.home:/home/pakmans/workspace/.mule
[23-01-13 11:07:01] [调试] mule.encoding :UTF-8
[23-01-13 11:07:01] [DEBUG]跳过57
[23-01-13 11:07:01] [DEBUG]创建邮件会话:host = imap.googlemail.com,port = 993,user = your_username@gmail.com,pass = ********
[23-01-13 11:07:01] [DEBUG] creating:true; mule.email.imaps
[23-01-13 11:07:01] [DEBUG]创建工厂
[23-01-13 11:07:01] [INFO]使用org.mule。 api.security.provider.SunSecurityProviderInfo
[23-01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.trustStore - > null
[23-01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.trustStoreType - > jks
[23-01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.trustStorePassword - > null
[23-01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.trustManagerAlgorithm - > SunX509
[23-01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.keyStore - > .keystore
[23-01-13 11:07:01] [DEBUG]无法从文件系统加载资源:/home/pakmans/workspace/mulelab/.keystore
[23-01- 13 11:07:01] [DEBUG]无法从类路径加载资源.keystore
[23-01-13 11:07:01] [DEBUG]归一化的keyStore路径为:null
[23 -01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.keyStoreType - > jks
[23-01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.keyStorePassword - > null
[23-01-13 11:07:01] [DEBUG] initialising:anon true
[23-01-13 11:07:01] [INFO]默认mule.email.imaps信任存储到客户端密钥存储
[23-01-13 11:07:03] [调试]连接:imaps://your_username%40gmail.com:****@imap.googlemail.com:993
[23-01-13 11:07:03] [INFO]开始:'null'。对象是:RetrieveMessageReceiver
[23-01-13 11:07:03] [INFO]启动集群化消息接收器
[23-01-13 11:07:03] [DEBUG] RetrieveMessageReceiver @ 22fe135d计划ScheduledThreadPoolExecutor $ ScheduledFutureTask @ 6fa37fac with 5000 MILLISECONDS polling frequency
[23-01-13 11:07:03] [DEBUG] lifecycle phase:start for object:DefaultInboundEndpoint {endpointUri = imaps://your_username%40gmail.com: < password> @ imap.googlemail.com,connector = ImapsConnector
{
name = imapsConnector
lifecycle = start
this = 4bb4df9c
numberOfConcurrentTransactedReceivers = 4
createMultipleTransactedReceivers = true
connected = true
supportedProtocols = [imaps]
serviceOverrides =< none>
}
,name ='endpoint.imaps.your_username.gmail.com',mep = ONE_WAY,properties = {},transactionConfig = Transaction {factory = null,action = INDIFFERENT,timeout = 0}, deleteUnacceptedMessages = false,initialState = started,responseTimeout = 10000,endpointEncoding = UTF-8,disableTransportTransformer = true}
[23-01-13 11:07:03] [DEBUG]生命周期阶段:对象开始:org。 mule.DefaultMuleContext@6a9effe0
[23-01-13 11:07:03] [INFO]重新加载间隔:3000
[23-01-13 11:07:03] [DEBUG] org.springframework .beans.factory.NoSuchBeanDefinitionException:没有名为'wrapper-manager'的bean被定义
[23-01-13 11:07:03] [DEBUG]注册键/对象wrapper-manager / org.mule.module。 management.agent.WrapperManagerAgent@4c825cf3
[23-01-13 11:07:03] [DEBUG]应用处理器
[23-01-13 11:07:03] [DEBUG]将生命周期应用于object:org.mule.module.management.agent.WrapperManagerAgent@4c825cf3
[23-01-13 11:07:03] [INFO]这个JVM还没有被wrappe启动r,代理不会运行。
[23-01-13 11:07:03] [DEBUG]用名称注册统计:Mule.mulelab:type = Statistics,name = AllStatistics
[23-01-13 11:07:03 ] [DEBUG]使用名称注册mule:Mule.mulelab:name = MuleContext
[23-01-13 11:07:03] [DEBUG]使用名称注册配置:Mule.mulelab:name = Configuration
[23-01-13 11:07:03] [DEBUG]注册模型名称:Mule.mulelab:type = Model,name =_ muleSystemModel(seda)
[23-01-13 11:07 :03] [DEBUG]使用名称注册服务:Mule.mulelab:type = Flow,name =GmailImapsFetch
[23-01-13 11:07:03] [DEBUG] org.springframework.beans.factory .NoSuchBeanDefinitionException:没有名为'endpoint.imaps.your_username.gmail.com'的bean被定义
[23-01-13 11:07:03] [INFO]试图用名称注册服务:Mule.mulelab:type =端点,服务=GmailImapsFetch,连接器= imapsConnector,名称=endpoint.imaps.your_username.gmail.com
[23-01-13 11:07:03] [信息]带名称的注册端点服务:Mule.mulelab:type = Endpoint, service =GmailImapsFetch,connector = imapsConnector,name =endpoint.imaps.your_username.gmail.com
[23-01-13 11:07:03] [DEBUG] org.springframework.beans.factory。 NoSuchBeanDefinitionException:未定义名为'connector.file.mule.default.1'的bean
[23-01-13 11:07:03] [DEBUG]试图用名称注册服务:Mule.mulelab:type = Connector,name =connector.file.mule.default.1
[23-01-13 11:07:03] [INFO]注册连接器服务,名称为Mule.mulelab:type = Connector,name = connector.file.mule.default.1
[23-01-13 11:07:03] [DEBUG] org.springframework.beans.factory.NoSuchBeanDefinitionException:没有定义名为'imapsConnector.1'的bean
[23-01-13 11:07:03] [DEBUG]试图用名称注册服务:Mule.mulelab:type = Connector,name =imapsConnector.1
[23-01-13 11:07:03] [INFO]注册连接器服务,名称为Mule.mulelab:type = Connector,name =imapsConnector.1
[23-01-13 11:07:03] [DEBUG]注册应用程序统计wi th name:Mule.mulelab:type = Application,name =application totals
[23-01-13 11:07:03] [INFO]
********** ************************************************** **********
*应用程序:mulelab *
*操作系统编码:UTF-8,Mule编码:UTF-8 *
* *
*代理正在运行:*
* JMX代理*
*********************************** ***********************************
[23-01-13 11:07:03 ] [信息]
+++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++
+开始使用'mulelab'+
+++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++

解决方案

我要冒一个答案:$



根据t他,它似乎是你的配置错过了推荐使用GMail的属性: b
$ b


moveToFolder
将邮件移动到的远程文件夹一旦它被读取。
当使用
时,建议'deleteReadMessages'设置为false。在使用公共电子邮件服务
(如GMail)时,此标记非常有用,其中标记要删除的邮件不起作用。
改为设置@ moveToFolder = [GMail] / Trash。


你可以试试吗?



(编辑:[Gmail]必须括在括号内)


Anyone has a working example of reading mails from IMAP over SSL (IMAPS) from Gmail?

Some info I have gathered, but without any success:

The thing just sits there doing nothing.

Here is my flow:

<mule>
<imaps:connector
        name="imapsConnector"
        checkFrequency="5000"
        backupEnabled="true"
        mailboxFolder="INBOX"
        deleteReadMessages="false"
        doc:name="IMAP">
        <imaps:tls-client />
        <imaps:tls-trust-store />
    </imaps:connector>

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

    <flow
        name="GmailImapsFetch"
        doc:name="Flow1_IMAP_fetch">
        <imaps:inbound-endpoint
            user="your_username%40gmail.com"
            password="your_password"
            host="imap.googlemail.com"
            port="993"
            transformer-refs="returnAttachments"
            disableTransportTransformer="true"
            doc:name="IMAP"
            connector-ref="imapsConnector"
            responseTimeout="10000" />
        <!-- <collection-splitter doc:name="Collection Splitter" /> -->
        <logger message="#[payload]" />
        <file:outbound-endpoint
            path="/tmp/gmail-#[function:datestamp].dat"
            doc:name="File">
            <expression-transformer>
                <return-argument
                    expression="payload.inputStream"
                    evaluator="groovy" />
            </expression-transformer>
        </file:outbound-endpoint>

    </flow>
</mule>

Mule Studio (1.3.2) complains that the XML is malformed (it doesn't like the expression-transformer thingie), but it doesn't complain at runtime.

Anyone has this running?

Thanks.

--

Log:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Starting app 'mulelab'                                   +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[23-01-13 11:07:01] [DEBUG] Applying lifecycle phase: org.mule.lifecycle.phases.MuleContextStartPhase@14b03ea for registry: DefaultRegistryBroker
[23-01-13 11:07:01] [DEBUG] lifecycle phase: start for object: org.mule.util.queue.TransactionalQueueManager@63edf84f
[23-01-13 11:07:01] [ INFO] Starting ResourceManager
[23-01-13 11:07:01] [DEBUG] Restore retrieved 0 objects
[23-01-13 11:07:01] [DEBUG] Restore retrieved 0 objects
[23-01-13 11:07:01] [DEBUG] Restore retrieved 0 objects
[23-01-13 11:07:01] [ INFO] Started ResourceManager
[23-01-13 11:07:01] [DEBUG] lifecycle phase: start for object: FileConnector
. . .   
[23-01-13 11:07:01] [DEBUG] lifecycle phase: start for object: ImapsConnector
{
  name=imapsConnector
  lifecycle=initialise
  this=4bb4df9c
  numberOfConcurrentTransactedReceivers=4
  createMultipleTransactedReceivers=true
  connected=false
  supportedProtocols=[imaps]
  serviceOverrides=<none>
}

[23-01-13 11:07:01] [DEBUG] Connecting: ImapsConnector
{
  name=imapsConnector
  lifecycle=initialise
  this=4bb4df9c
  numberOfConcurrentTransactedReceivers=4
  createMultipleTransactedReceivers=true
  connected=false
  supportedProtocols=[imaps]
  serviceOverrides=<none>
}

[23-01-13 11:07:01] [ INFO] Connected: ImapsConnector
{
  name=imapsConnector
  lifecycle=initialise
  this=4bb4df9c
  numberOfConcurrentTransactedReceivers=4
  createMultipleTransactedReceivers=true
  connected=true
  supportedProtocols=[imaps]
  serviceOverrides=<none>
}

[23-01-13 11:07:01] [ INFO] Starting: ImapsConnector
{
  name=imapsConnector
  lifecycle=initialise
  this=4bb4df9c
  numberOfConcurrentTransactedReceivers=4
  createMultipleTransactedReceivers=true
  connected=true
  supportedProtocols=[imaps]
  serviceOverrides=<none>
}

[23-01-13 11:07:01] [ INFO] Starting connector: imapsConnector
[23-01-13 11:07:01] [DEBUG] Successfully connected to ImapsConnector
{
  name=imapsConnector
  lifecycle=initialise
  this=4bb4df9c
  numberOfConcurrentTransactedReceivers=4
  createMultipleTransactedReceivers=true
  connected=false
  supportedProtocols=[imaps]
  serviceOverrides=<none>
}

[23-01-13 11:07:01] [DEBUG] lifecycle phase: start for object: org.mule.transport.servlet.jetty.JettyWebappServerAgent@26945b95
[23-01-13 11:07:01] [DEBUG] lifecycle phase: start for object: org.mule.module.management.agent.JmxAgent@320f6398
[23-01-13 11:07:01] [DEBUG] lifecycle phase: start for object: SedaModel{_muleSystemModel}
[23-01-13 11:07:01] [ INFO] Starting model: _muleSystemModel
[23-01-13 11:07:01] [DEBUG] lifecycle phase: start for object: Flow{GmailImapsFetch}
[23-01-13 11:07:01] [ INFO] Starting flow: GmailImapsFetch
[23-01-13 11:07:01] [ INFO] Starting service: GmailImapsFetch.stage1
[23-01-13 11:07:01] [ INFO] Registering listener: GmailImapsFetch on endpointUri: imaps://your_username%40gmail.com:****@imap.googlemail.com:993
[23-01-13 11:07:01] [ INFO] Loading default inbound transformer: org.mule.transport.email.transformers.EmailMessageToString
[23-01-13 11:07:01] [DEBUG] Setting transformer name to: EmailMessageToString#1868577756
[23-01-13 11:07:01] [ INFO] Initialising: 'null'. Object is: RetrieveMessageReceiver
[23-01-13 11:07:01] [DEBUG] Connecting: RetrieveMessageReceiver{this=22fe135d, receiverKey=your_username@gmail.com, endpoint=imaps://your_username%40gmail.com:****@imap.googlemail.com:993}
[23-01-13 11:07:01] [ INFO] Connecting clusterizable message receiver
[23-01-13 11:07:01] [DEBUG] No Authenticator set on connector: imapsConnector; using default.
[23-01-13 11:07:01] [ INFO] Defaulting mule.email.imaps trust store to client Key Store
[23-01-13 11:07:01] [DEBUG] MuleSession local properties =============
[23-01-13 11:07:01] [DEBUG] mail.imaps.ssl: true
[23-01-13 11:07:01] [DEBUG] mail.debug: true
[23-01-13 11:07:01] [DEBUG] mail.imaps.socketFactory.class: org.mule.transport.email.ImapsSocketFactory
[23-01-13 11:07:01] [DEBUG] mail.imaps.socketFactory.fallback: false
[23-01-13 11:07:01] [DEBUG] mail.imap.host: imap.googlemail.com
[23-01-13 11:07:01] [DEBUG] mail.imap.auth: true
[23-01-13 11:07:01] [DEBUG] mail.imap.socketFactory.port: 993
[23-01-13 11:07:01] [DEBUG] mail.imap.rsetbeforequit: true
[23-01-13 11:07:01] [DEBUG] skipped 0
[23-01-13 11:07:01] [DEBUG] System global properties =============
[23-01-13 11:07:01] [DEBUG] mule.home: /home/pakmans/workspace/.mule
[23-01-13 11:07:01] [DEBUG] mule.encoding: UTF-8
[23-01-13 11:07:01] [DEBUG] skipped 57
[23-01-13 11:07:01] [DEBUG] Creating mail session: host = imap.googlemail.com, port = 993, user = your_username@gmail.com, pass = ********
[23-01-13 11:07:01] [DEBUG] creating: true; mule.email.imaps
[23-01-13 11:07:01] [DEBUG] creating factory
[23-01-13 11:07:01] [ INFO] Using org.mule.api.security.provider.SunSecurityProviderInfo
[23-01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.trustStore -> null
[23-01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.trustStoreType -> jks
[23-01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.trustStorePassword -> null
[23-01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.trustManagerAlgorithm -> SunX509
[23-01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.keyStore -> .keystore
[23-01-13 11:07:01] [DEBUG] Unable to load resource from the file system: /home/pakmans/workspace/mulelab/.keystore
[23-01-13 11:07:01] [DEBUG] Unable to load resource .keystore from the classpath
[23-01-13 11:07:01] [DEBUG] Normalised keyStore path to: null
[23-01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.keyStoreType -> jks
[23-01-13 11:07:01] [DEBUG] mule.email.imaps.ssl.keyStorePassword -> null
[23-01-13 11:07:01] [DEBUG] initialising: anon true
[23-01-13 11:07:01] [ INFO] Defaulting mule.email.imaps trust store to client Key Store
[23-01-13 11:07:03] [DEBUG] Connected: imaps://your_username%40gmail.com:****@imap.googlemail.com:993
[23-01-13 11:07:03] [ INFO] Starting: 'null'. Object is: RetrieveMessageReceiver
[23-01-13 11:07:03] [ INFO] Starting clusterizable message receiver
[23-01-13 11:07:03] [DEBUG] RetrieveMessageReceiver@22fe135d scheduled ScheduledThreadPoolExecutor$ScheduledFutureTask@6fa37fac with 5000 MILLISECONDS polling frequency
[23-01-13 11:07:03] [DEBUG] lifecycle phase: start for object: DefaultInboundEndpoint{endpointUri=imaps://your_username%40gmail.com:<password>@imap.googlemail.com, connector=ImapsConnector
{
  name=imapsConnector
  lifecycle=start
  this=4bb4df9c
  numberOfConcurrentTransactedReceivers=4
  createMultipleTransactedReceivers=true
  connected=true
  supportedProtocols=[imaps]
  serviceOverrides=<none>
}
,  name='endpoint.imaps.your_username.gmail.com', mep=ONE_WAY, properties={}, transactionConfig=Transaction{factory=null, action=INDIFFERENT, timeout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8, disableTransportTransformer=true}
[23-01-13 11:07:03] [DEBUG] lifecycle phase: start for object: org.mule.DefaultMuleContext@6a9effe0
[23-01-13 11:07:03] [ INFO] Reload interval: 3000
[23-01-13 11:07:03] [DEBUG] org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'wrapper-manager' is defined
[23-01-13 11:07:03] [DEBUG] registering key/object wrapper-manager/org.mule.module.management.agent.WrapperManagerAgent@4c825cf3
[23-01-13 11:07:03] [DEBUG] applying processors
[23-01-13 11:07:03] [DEBUG] applying lifecycle to object: org.mule.module.management.agent.WrapperManagerAgent@4c825cf3
[23-01-13 11:07:03] [ INFO] This JVM hasn't been launched by the wrapper, the agent will not run.
[23-01-13 11:07:03] [DEBUG] Registering statistics with name: Mule.mulelab:type=Statistics,name=AllStatistics
[23-01-13 11:07:03] [DEBUG] Registering mule with name: Mule.mulelab:name=MuleContext
[23-01-13 11:07:03] [DEBUG] Registering configuration with name: Mule.mulelab:name=Configuration
[23-01-13 11:07:03] [DEBUG] Registering model with name: Mule.mulelab:type=Model,name="_muleSystemModel(seda)"
[23-01-13 11:07:03] [DEBUG] Registering service with name: Mule.mulelab:type=Flow,name="GmailImapsFetch"
[23-01-13 11:07:03] [DEBUG] org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'endpoint.imaps.your_username.gmail.com' is defined
[23-01-13 11:07:03] [ INFO] Attempting to register service with name: Mule.mulelab:type=Endpoint,service="GmailImapsFetch",connector=imapsConnector,name="endpoint.imaps.your_username.gmail.com"
[23-01-13 11:07:03] [ INFO] Registered Endpoint Service with name: Mule.mulelab:type=Endpoint,service="GmailImapsFetch",connector=imapsConnector,name="endpoint.imaps.your_username.gmail.com"
[23-01-13 11:07:03] [DEBUG] org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'connector.file.mule.default.1' is defined
[23-01-13 11:07:03] [DEBUG] Attempting to register service with name: Mule.mulelab:type=Connector,name="connector.file.mule.default.1"
[23-01-13 11:07:03] [ INFO] Registered Connector Service with name Mule.mulelab:type=Connector,name="connector.file.mule.default.1"
[23-01-13 11:07:03] [DEBUG] org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'imapsConnector.1' is defined
[23-01-13 11:07:03] [DEBUG] Attempting to register service with name: Mule.mulelab:type=Connector,name="imapsConnector.1"
[23-01-13 11:07:03] [ INFO] Registered Connector Service with name Mule.mulelab:type=Connector,name="imapsConnector.1"
[23-01-13 11:07:03] [DEBUG] Registering application statistics with name: Mule.mulelab:type=Application,name="application totals"
[23-01-13 11:07:03] [ INFO] 
**********************************************************************
* Application: mulelab                                               *
* OS encoding: UTF-8, Mule encoding: UTF-8                           *
*                                                                    *
* Agents Running:                                                    *
*   JMX Agent                                                        *
**********************************************************************
[23-01-13 11:07:03] [ INFO] 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Started app 'mulelab'                                    +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

解决方案

I'm going to risk an answer :$

According to the IMAP's connector doc, it seems your config misses an attribute that is recommended with GMail:

moveToFolder The remote folder to move mail to once it has been read. It is recommended that 'deleteReadMessages' is set to false when this is used. This is very useful when working with public email services such as GMail where marking messages for deletion doesn't work. Instead set the @moveToFolder=[GMail]/Trash.

Can you give it a try?

(Edited: [Gmail] has to be surrounded by brackets)

这篇关于Mule ESB 3.3 - 接收IMAPS邮件(Gmail)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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