<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:spring="http://www.springframework.org/schema/beans"
       xmlns:imap="http://www.mulesource.org/schema/mule/imap/2.0"
       xmlns:imaps="http://www.mulesource.org/schema/mule/imaps/2.0"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd
       http://www.mulesource.org/schema/mule/imap/2.0 http://www.mulesource.org/schema/mule/imap/2.0/mule-imap.xsd
       http://www.mulesource.org/schema/mule/imaps/2.0 http://www.mulesource.org/schema/mule/imaps/2.0/mule-imaps.xsd">

    <imap:connector name="imapConnector" backupEnabled="true" backupFolder="newBackup" checkFrequency="1234"
                    mailboxFolder="newMailbox" deleteReadMessages="false"/>

    <!-- need to revisit this once tests are working - it's not clear to me what
         key store is being used in the tests -->

    <imaps:connector name="imapsConnector" backupEnabled="false" backupFolder="newBackup" checkFrequency="1234"
                     mailboxFolder="newMailbox" deleteReadMessages="false">
        <imaps:tls-client path="greenmail-truststore" storePassword="password"/>
        <imaps:tls-trust-store path="greenmail-truststore" storePassword="password"/>
    </imaps:connector>

    <imap:endpoint name="global1" host="localhost" password="secret" port="123" user="bob"/>
    <imap:endpoint name="global2" address="imap://bob:secret@localhost:123"/>
    <imaps:endpoint name="global1s" host="localhost" password="secret" port="123" user="bob"/>
    <imaps:endpoint name="global2s" address="imaps://bob:secret@localhost:123"/>

</mule>