<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
    <!--<bean id="muleManager"-->
    <!--class="org.mule.module.spring.config.AutowireUMOManagerFactoryBean"/>-->

    <!--<bean id="muleNameProcessor"-->
    <!--class="org.mule.module.spring.config.MuleObjectNameProcessor"/>-->

    <bean id="applicationEventMulticaster"
          class="org.mule.module.spring.events.MuleEventMulticaster">
        <property name="subscriptions">
            <list>
                <value>vm://*</value>
                <value>emailEndpoint</value>
            </list>
        </property>
    </bean>

    <bean id="emailEndpoint" class="org.mule.endpoint.InboundEndpoint">
        <property name="name" value="email"/>
        <property name="connector">
            <ref local="mailConnector"/>
        </property>
        <property name="endpointURI" value="pop3://user@lotsofmail.org"/>
    </bean>

    <bean id="mailConnector" class="org.mule.transport.email.Pop3Connector">
        <property name="name" value="mailConnector"/>
        <property name="username" value="mule"/>
        <property name="hostname" value="mail.muleumo.org"/>
        <property name="password" value="secret"/>
        <property name="checkFrequency" value="60000"/>
    </bean>
</beans>
