We have more than 200 email addresses which are used to do integration with our customers, and most of the email process logic are same, we want to migrate those emails to Spring integration inbound email adapter, however we don't want to repeat copy and paste following code snippet
<int-mail:imap-idle-channel-adapter id="mailAdapter"
store-uri="${uri}"
channel="emailInboundChannel"
auto-startup="true"
should-delete-messages="false"
search-term-strategy="unseenSearchTermStrategy"
java-mail-properties="javaMailProperties">
<int-mail:transactional synchronization-factory="syncFactory" transaction-manager="transactionManager"/>
</int-mail:imap-idle-channel-adapter>
Is there any way that we can just use one email adapter with fixed rate poller to connect to as many email address as we can , then send the email message to same inbound channel?