<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:util="http://www.springframework.org/schema/util"
	xmlns:mail="http://www.springframework.org/schema/integration/mail"
	xmlns:integration="http://www.springframework.org/schema/integration"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
			https://www.springframework.org/schema/beans/spring-beans.xsd
			http://www.springframework.org/schema/util
			https://www.springframework.org/schema/util/spring-util.xsd
			http://www.springframework.org/schema/integration
			https://www.springframework.org/schema/integration/spring-integration.xsd
			http://www.springframework.org/schema/integration/mail
			https://www.springframework.org/schema/integration/mail/spring-integration-mail.xsd">

	<integration:channel id="channel"/>

	<mail:inbound-channel-adapter id="imapAdapter"
			store-uri="imap:foo" java-mail-properties="props" channel="channel" should-delete-messages="false" auto-startup="false"/>

	<mail:inbound-channel-adapter id="pop3Adapter"
			store-uri="pop3:bar" java-mail-properties="props" channel="channel" should-delete-messages="true" auto-startup="false"/>

	<util:properties id="props">
		<prop key="foo">bar</prop>
	</util:properties>

	<integration:poller default="true" fixed-rate="60000"/>

</beans>
