Announcement Announcement Module
Collapse
No announcement yet.
Gmail IMAP BODY.PEEK Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Gmail IMAP BODY.PEEK

    Hi,

    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:

    http://www.google.com/support/forum/...e17bcbfd&hl=en

    Thanks

  • #2
    Could you please open up a JIRA ticket here: https://jira.springsource.org
    In the meantime you can use IMAP IDLE channel adapter. Works well with Google and its event driven instead of polling.
    Code:
    <int-mail:imap-idle-channel-adapter id="customAdapter"
    	store-uri="imaps://${user}:${password}@imap.gmail.com/INBOX"
    	channel="receiveChannel"
    	should-mark-messages-as-read="false"		
    	java-mail-properties="javaMailProperties"/>

    Comment


    • #3
      There is a bug on our side. Should be fixed tonight.
      Here is the JIRA i've created https://jira.springsource.org/browse/INT-1824

      However you can still use IMAP IDLE adapter

      Comment


      • #4
        Thanks.

        But i was using GMAIL only for testing purposes, i ve to use IBM Domino which currently does not support IMAP IDLE.

        Comment


        • #5
          How sad
          Thanks for reporting it anyway. The good thing is that it is fixed for those servers that do support it.
          Cheers

          Comment

          Working...
          X