I am using <int-mail:inbound-channel-adapter /> to access GMAIL with IMAP. The setting should-mark-messages-as-read="false" is not working as gmail always marks messages as read. When i enabled debug in mail properties i saw that spring integration is using BODY to fetch messages instead of BODY.PEEK. How can i do a PEEK?
As it is required by gmail, see below link: