spring receive emails without xml (using annotations only)
I need to periodically check about 30 mailboxes and want to do this with annotations only. I know how to do it with XML files, it looks like this: <mail:inbound-channel-adapter id="ImapAdapter" store-uri="imaps://${login}:${pass}@${host}:993/inbox" channel="testReceiveEmailChannel" should-delete-messages="false" should-mark-messages-as-read="true" auto-startup="true" java-mail-properties="javaMailProperties"> <int:poller fixed-delay="200" time-unit="SECONDS" task-executor="asyncTaskExecutor"/> </mail:inbound-channel-adapter> <int:channel id="testReceiveEmailChannel"> <int:interceptors> <int